Skip to main content

Math

Vectors, quaternions, matrices, and math helpers.

Commonly used

All APIs in this topic

Objects and data

APIDescription
mat22x2 column-major floating-point matrix.
mat3A 3x3 matrix type supporting common linear algebra operations.
mat44x4 matrix used for 3D transformations including rotation, scale, translation, and projection.
MathUtilsUtility class providing common math operations and constants.
quatQuaternion type for representing rotations in 3D space.
vec22D vector with x and y components, used for 2D positions, directions, and math operations.
vec33-component floating-point vector used for 3D positions, directions, and RGB color values.
vec4Four-component float vector used for XYZW coordinates and RGBA color values.
vec4bA 4-component boolean vector with x/y/z/w and r/g/b/a accessors.