Overview of glam features and supported types
mainglam is a fast 3D math library for games and graphics. It provides a wide range of mathematical types across different scalar types.
Key Type Groups:
- f32 (Built-in): Vectors (
Vec2,Vec3,Vec3A,Vec4), Square Matrices (Mat2,Mat3,Mat3A,Mat4), Quaternions (Quat), Affine transformations (Affine2,Affine3,Affine3A), and camera constructors via thecameramodule. - f64:
DVec2,DVec3,DVec4,DMat2,DMat3,DMat4,DQuat,DAffine2,DAffine3, and camera constructors viadcamera. - Integers & Unsigned: Supports
i8,u8,i16,u16,i32,u32,i64,u64,isize, andusizevectors. - Booleans:
BVec2,BVec3,BVec4.
Note: f32 and bool types are enabled by default. All other types are optional and can be disabled to improve compile times.