#vector #integer #math #3d #morton

ilattice

2 and 3-dimensional integer lattice math

3 releases (breaking)

0.3.0 Mar 12, 2023
0.2.0 Sep 13, 2022
0.1.0 Oct 21, 2021

#674 in Algorithms

Download history 68/week @ 2023-02-11 67/week @ 2023-02-18 90/week @ 2023-02-25 122/week @ 2023-03-04 118/week @ 2023-03-11 50/week @ 2023-03-18 42/week @ 2023-03-25 51/week @ 2023-04-01 73/week @ 2023-04-08 104/week @ 2023-04-15 72/week @ 2023-04-22 91/week @ 2023-04-29 62/week @ 2023-05-06 30/week @ 2023-05-13 43/week @ 2023-05-20 74/week @ 2023-05-27

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

~2–2.8MB
~78K SLoC