Skip to main content

Module math

Module math 

Source
Expand description

Vector, quaternion and matrix types.

Every type here is #[repr(C)] and Copy, laid out identically to its C++ counterpart, so it crosses the FFI boundary with no conversion and no allocation. Component-wise arithmetic, dot and length are plain Rust; anything with subtler semantics (Hamilton product, slerp, matrix inverse, the spline interpolators) calls into the C++ implementation so this binding cannot drift from the library.

Structs§

Matrix33f
Row-major, matching the C++ MatrixMethods storage order.
Matrix44f
Row-major, matching the C++ MatrixMethods storage order.
Quaternion
Vector2f
Vector3f
Vector4f

Functions§

check_abi
Verify that the linked native library matches the layouts this crate was generated against.
cross
transform_normal
transform_point