struct Matrix

robot_2Generated
code_blocksInput

Description

The Matrix struct represents a 4x4 matrix, commonly used in 3D graphics for transformations such as translation, rotation, and scaling. It provides a variety of static methods to create specific types of transformation matrices, as well as instance methods to manipulate and transform vectors using the matrix.

Members

Static Members

Member NameSummary
CreateWorldCreates a world matrix with the 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 from a specified vector.
CreateScaleCreates a scaling matrix from a specified vector, with an optional center point.
CreateSkewCreates a skew matrix from a specified vector.
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.