Expand description
Matrix mathematics module providing 2x2, 3x3, and 4x4 matrices.
This module provides square matrix types commonly used in computer graphics and linear algebra. Matrices are stored in column-major order for compatibility with graphics APIs like OpenGL.
§Examples
use rs_math3d::matrix::Matrix4;
use rs_math3d::vector::Vector4;
let m = Matrix4::<f32>::identity();
let v = Vector4::new(1.0, 2.0, 3.0, 1.0);
let result = m * v; // Transform vector
Structs§
- Matrix2
- A 2x2 matrix stored in column-major order.
- Matrix3
- A 3x3 matrix stored in column-major order.
- Matrix4
- A 4x4 matrix stored in column-major order.