Expand description
A simple, f32-based graphics math library.
Includes two, three, and four-dimensional real vectors and matrices, quaternions, and assorted utilities for transformations and projections.
Re-exports§
pub use angle::Angle;pub use fp::ApproxEq;pub use mat::Mat2;pub use mat::Mat3;pub use mat::Mat4;pub use mat::SquareMatrix;pub use quaternion::Quaternion;pub use vec::Vec2;pub use vec::Vec3;pub use vec::Vec4;pub use vec::Vector;
Modules§
- angle
- Consistent angle representations and conversions.
- fp
- Helpers for performing floating-point arithmetic.
- lerp
- mat
- Two, three, and four-dimensional real square matrices with
f32components. - quaternion
- Quaternions with
f32components. - transform
- Assorted utilities for constructing 3D homogeneous transformation and projection matrices.
- vec
- Two, three, and four-dimensional real vectors with
f32components.
Macros§
- assert_
approx_ eq - Assert that two expressions are approximately equal according to their
ApproxEqimplementations. - assert_
within_ threshold - Assert that two expressions are within a threshold specified by the third parameter, according
to their
ApproxEqimplementations. - vec2
- Construct a
Vec2with the given components. - vec3
- Construct a
Vec3with the given components. - vec4
- Construct a
Vec4with the given components.