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

#2296 in Algorithms

Download history 90/week @ 2024-11-13 124/week @ 2024-11-20 223/week @ 2024-11-27 213/week @ 2024-12-04 310/week @ 2024-12-11 179/week @ 2024-12-18 58/week @ 2024-12-25 143/week @ 2025-01-01 189/week @ 2025-01-08 277/week @ 2025-01-15 204/week @ 2025-01-22 174/week @ 2025-01-29 243/week @ 2025-02-05 248/week @ 2025-02-12 209/week @ 2025-02-19 232/week @ 2025-02-26

980 downloads per month
Used in 7 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. 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

~5MB
~144K SLoC