### 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 |

#**916** in Algorithms

**954** downloads per month

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

**MIT/Apache**

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. 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

~3.5MB

~101K SLoC