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

Download history 116/week @ 2023-12-22 61/week @ 2023-12-29 130/week @ 2024-01-05 184/week @ 2024-01-12 119/week @ 2024-01-19 69/week @ 2024-01-26 55/week @ 2024-02-02 115/week @ 2024-02-09 113/week @ 2024-02-16 121/week @ 2024-02-23 120/week @ 2024-03-01 150/week @ 2024-03-08 127/week @ 2024-03-15 124/week @ 2024-03-22 167/week @ 2024-03-29 517/week @ 2024-04-05

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

~3.5MB
~101K SLoC