Graphics-oriented vector and matrix math from
Windows.Foundation.Numerics.
- 馃摝 crates.io
- 馃摉 docs.rs
- 馃殌 Getting started
- 馃搧 Source
windows-numerics provides the POD math value types used by Direct2D,
composition, and other graphics APIs: Vector2, Vector3, Vector4,
Matrix3x2, and Matrix4x4. Each is a plain #[repr(C)] struct with inherent
methods and operator overloads layered on top.
The remainder of this page covers how the crate is built and maintained. It is
for contributors and is not needed to use windows-numerics.
src/bindings.rs is generated by tool_bindings from
crates/tools/bindings/src/numerics.txt; the inherent methods and operator trait
impls are hand-written.
Run cargo test -p windows-numerics; see also the workspace test crates.