Skip to content

Latest commit

History

History
30 lines (20 loc) 路 1.06 KB

File metadata and controls

30 lines (20 loc) 路 1.06 KB

windows-numerics

Graphics-oriented vector and matrix math from Windows.Foundation.Numerics.

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.


Internal documentation

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.

How it's built

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.

Testing

Run cargo test -p windows-numerics; see also the workspace test crates.