Skip to main content

Module math

Module math 

Source
Expand description

Math primitives: vectors, matrices, transforms, color

Zero dependencies. Pure computation.

Re-exports§

pub use color::Color;
pub use mat::Mat3;
pub use mat::Mat4;
pub use vec::Vec2;
pub use vec::Vec3;
pub use vec::Vec4;
pub use transform::*;

Modules§

color
Color: RGBA f64 with blending operations
mat
Matrix types: Mat3 (2D transforms), Mat4 (3D transforms)
transform
Transform factory functions
vec
Vector types: Vec2, Vec3, Vec4 (homogeneous coordinates)