4 releases (breaking)
0.4.0 | Nov 27, 2023 |
---|---|
0.3.0 | Mar 12, 2023 |
0.2.0 | Sep 13, 2022 |
0.1.0 | Oct 21, 2021 |
#1677 in Algorithms
454 downloads per month
Used in 7 crates
(2 directly)
57KB
1.5K
SLoC
ilattice
Generic math on integer lattices (regular grids).
This crate provides types and traits that make it easy to write generic code with integer lattices, i.e. Z2 and
Z3. In particular, we provide implementations of IntegerVector
for glam
's
IVec2
, IVec3
, UVec2
and UVec3
types. There are also some
traits that apply to vectors with real number scalars as well, and those are implemented for Vec2
,
Vec3
, and Vec3A
.
lib.rs
:
Generic math on integer lattices (regular grids).
This crate provides types and traits that make it easy to write generic code with integer lattices, i.e. Z2 and
Z3. In particular, we provide implementations of IntegerVector
for glam
's
IVec2
, IVec3
, UVec2
and UVec3
types. There are also some
traits that apply to vectors with real number scalars as well, and those are implemented for Vec2
,
Vec3
, and Vec3A
.
Dependencies
~4.5MB
~133K SLoC