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
f32
components. - quaternion
- Quaternions with
f32
components. - transform
- Assorted utilities for constructing 3D homogeneous transformation and projection matrices.
- vec
- Two, three, and four-dimensional real vectors with
f32
components.
Macros§
- assert_
approx_ eq - Assert that two expressions are approximately equal according to their
ApproxEq
implementations. - assert_
within_ threshold - Assert that two expressions are within a threshold specified by the third parameter, according
to their
ApproxEq
implementations. - vec2
- Construct a
Vec2
with the given components. - vec3
- Construct a
Vec3
with the given components. - vec4
- Construct a
Vec4
with the given components.