### 3 releases (breaking)

0.3.0 | Mar 12, 2023 |
---|---|

0.2.0 | Sep 13, 2022 |

0.1.0 | Oct 21, 2021 |

#**674** in Algorithms

**245** downloads per month

Used in **3** crates
(2 directly)

**MIT/Apache**

56KB

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. Z^{2} and
Z^{3}. In particular, we provide implementations of

for `IntegerVector`

's
`glam`

, `IVec2`

, `IVec3`

and `UVec2`

types. There are also some
traits that apply to vectors with real number scalars as well, and those are implemented for `UVec3`

,
`Vec2`

, and `Vec3`

.`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. Z^{2} and
Z^{3}. In particular, we provide implementations of

for `IntegerVector`

's
`glam`

, `IVec2`

, `IVec3`

and `UVec2`

types. There are also some
traits that apply to vectors with real number scalars as well, and those are implemented for `UVec3`

,
`Vec2`

, and `Vec3`

.`Vec3A`

#### Dependencies

~2–2.8MB

~78K SLoC