Design goals:
- Ability to express arbitrary combinations of units (via
typenum
) - Reasonably short compilation errors (using const generics)
- Units should be separate from values (like in C++'s
units
, unlike indimensioned
) -
let speed = 10_f32 * (m / s)
support (likedimensioned
) - Storage types, prefixed unit aliases & unit categories toggled via cargo features
- Lowercase constants
- Unit conversions
- Nalgebra/glam/whatever support under feature flag