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

Download history 123/week @ 2024-07-19 204/week @ 2024-07-26 186/week @ 2024-08-02 241/week @ 2024-08-09 161/week @ 2024-08-16 139/week @ 2024-08-23 142/week @ 2024-08-30 100/week @ 2024-09-06 125/week @ 2024-09-13 163/week @ 2024-09-20 145/week @ 2024-09-27 67/week @ 2024-10-04 109/week @ 2024-10-11 145/week @ 2024-10-18 97/week @ 2024-10-25 100/week @ 2024-11-01

454 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

~4.5MB
~133K SLoC