The Matrix struct represents a 4x4 matrix, commonly used in 3D graphics for transformations such as translation, rotation, and scaling.
The Matrix struct represents a 4x4 matrix, commonly used in 3D graphics for transformations such as translation, rotation, and scaling.
Member Name | Summary |
---|---|
CreateWorld | Creates a world matrix from position, forward, and up vectors. |
CreateRotation | Creates a rotation matrix from a Rotation or Vector3 angles. |
CreateRotationX | Creates a matrix for rotation around the X-axis. |
CreateRotationY | Creates a matrix for rotation around the Y-axis. |
CreateRotationZ | Creates a matrix for rotation around the Z-axis. |
CreateTranslation | Creates a translation matrix from a vector. |
CreateScale | Creates a scaling matrix from a vector, with optional center point. |
CreateSkew | Creates a skew matrix from a vector. |
CreateSkewX | Creates a skew matrix along the X-axis. |
CreateSkewY | Creates a skew matrix along the Y-axis. |
CreateMatrix3D | Creates a 3D matrix from an array of floats. |
Lerp | Linearly interpolates between two matrices. |
Slerp | Spherically interpolates between two matrices. |
Identity | Returns the multiplicative identity matrix. |
Member Name | Summary |
---|---|
Transpose | Returns the transposed version of this matrix. |
Transform | Transforms a vector by this matrix. |
TransformNormal | Transforms a normal vector by this matrix. |
Inverted | Returns the inverse of this matrix. |