struct Matrix

book_4_sparkGenerated
code_blocksInput

Description

The Matrix struct represents a 4x4 matrix used for various transformations in 3D space, such as translation, rotation, scaling, and skewing. It provides a set of static methods to create these transformations and instance methods to manipulate and retrieve matrix data.

Members

Static Members

Member NameSummary
CreateWorldCreates a world matrix with specified position, forward, and up vectors.
CreateRotationCreates a rotation matrix from a Rotation or Vector3 angles.
CreateRotationXCreates a matrix for rotation around the X-axis by a specified angle in degrees.
CreateRotationYCreates a matrix for rotation around the Y-axis by a specified angle in degrees.
CreateRotationZCreates a matrix for rotation around the Z-axis by a specified angle in degrees.
CreateTranslationCreates a translation matrix using a specified vector.
CreateScaleCreates a scaling matrix using specified scale factors.
CreateSkewCreates a skew matrix using specified skew factors.
CreateSkewXCreates a skew matrix along the X-axis by a specified angle in degrees.
CreateSkewYCreates a skew matrix along the Y-axis by a specified angle in degrees.
CreateMatrix3DCreates a 3D matrix from a specified array of single-precision floating-point values.
LerpLinearly interpolates between two matrices.
SlerpSpherically interpolates between two matrices.
IdentityReturns the multiplicative identity matrix.

Instance Members

Member NameSummary
TransposeReturns the transposed version of this matrix, swapping rows and columns.
TransformTransforms a vector by this matrix.
TransformNormalTransforms a normal vector by this matrix.
InvertedReturns the inverse of this matrix.