fts_gamemath
fts_gamemath is a collection of Rust crates that provide basic building blocks for 3d video game math
fts_units
fts_units is a Rust library that enables compile-time type-safe mathematical operations using units of measurement.
use fts_units::si_system::quantities::f32::*;
let d = Meters::new(10.0);
let t = Seconds::new(2.0);
let v = d / v; // units will be m·s⁻¹
let err = d + t; // compile error
This easily extends into complex operations.
use *;
You can convert between units and cast between types.
let m = new;
let km : = m.convert_into;
assert_eq!;
let i : = m.cast_into;
assert_eq!;
For additional features and examples refer to the fts_units documentation.
fts_vecmath
Coming soon!
fts_intersect3d
Coming soon!
License: Unlicense OR MIT