windows-numerics
The windows-numerics crate provides Windows vector, matrix, plane, and quaternion types.
These are the same graphics math types used by composition, Direct2D, and Direct3D APIs, so values flow into those APIs without conversion.
Start by adding the following to your Cargo.toml file:
[]
= "0.100"
Use the vector and matrix types as needed:
use *;
let a = new;
assert_eq!;
let b = new;
let c = new;
assert_eq!;
let transform = translation;
assert_eq!;
assert_eq!;