DirectXMath Library matrix functions

Lists the matrix functions provided by DirectXMath.

Note

DirectXMath offers both left-handed and right-handed versions of matrix functions with 'handedness', but always assumes a row-major format.

 

In this section

Topic Description
XMMatrixAffineTransformation
Builds an affine transformation matrix.
XMMatrixAffineTransformation2D
Builds a 2D affine transformation matrix in the xy plane.
XMMatrixDecompose
Breaks down a general 3D transformation matrix into its scalar, rotational, and translational components.
XMMatrixDeterminant
Computes the determinant of a matrix.
XMMatrixIdentity
Builds the identity matrix.
XMMatrixInverse
Computes the inverse of a matrix.
XMMatrixIsIdentity
Tests whether a matrix is the identity matrix.
XMMatrixIsInfinite
Tests whether any of the elements of a matrix are positive or negative infinity.
XMMatrixIsNaN
Tests whether any of the elements of a matrix are NaN.
XMMatrixLookAtLH
Builds a view matrix for a left-handed coordinate system using a camera position, an up direction, and a focal point.
XMMatrixLookAtRH
Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a focal point.
XMMatrixLookToLH
Builds a view matrix for a left-handed coordinate system using a camera position, an up direction, and a camera direction.
XMMatrixLookToRH
Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a camera direction.
XMMatrixMultiply
Computes the product of two matrices.
XMMatrixMultiplyTranspose
Computes the transpose of the product of two matrices.
XMMatrixOrthographicLH
Builds an orthogonal projection matrix for a left-handed coordinate system.
XMMatrixOrthographicOffCenterLH
Builds a custom orthogonal projection matrix for a left-handed coordinate system.
XMMatrixOrthographicOffCenterRH
Builds a custom orthogonal projection matrix for a right-handed coordinate system.
XMMatrixOrthographicRH
Builds an orthogonal projection matrix for a right-handed coordinate system.
XMMatrixPerspectiveFovLH
Builds a left-handed perspective projection matrix based on a field of view.
XMMatrixPerspectiveFovRH
Builds a right-handed perspective projection matrix based on a field of view.
XMMatrixPerspectiveLH
Builds a left-handed perspective projection matrix.
XMMatrixPerspectiveOffCenterLH
Builds a custom version of a left-handed perspective projection matrix.
XMMatrixPerspectiveOffCenterRH
Builds a custom version of a right-handed perspective projection matrix.
XMMatrixPerspectiveRH
Builds a right-handed perspective projection matrix.
XMMatrixReflect
Builds a transformation matrix designed to reflect vectors through a given plane.
XMMatrixRotationAxis
Builds a matrix that rotates around an arbitrary axis.
XMMatrixRotationNormal
Builds a matrix that rotates around an arbitrary normal vector.
XMMatrixRotationQuaternion
Builds a rotation matrix from a quaternion.
XMMatrixRotationRollPitchYaw
Builds a rotation matrix based on a given pitch, yaw, and roll (Euler angles).
XMMatrixRotationRollPitchYawFromVector
Builds a rotation matrix based on a vector containing the Euler angles (pitch, yaw, and roll).
XMMatrixRotationX
Builds a matrix that rotates around the x-axis.
XMMatrixRotationY
Builds a matrix that rotates around the y-axis.
XMMatrixRotationZ
Builds a matrix that rotates around the z-axis.
XMMatrixScaling
Builds a matrix that scales along the x-axis, y-axis, and z-axis.
XMMatrixScalingFromVector
Builds a scaling matrix from a 3D vector.
XMMatrixSet
Creates a matrix with float values.
XMMatrixShadow
Builds a transformation matrix that flattens geometry into a plane.
XMMatrixTransformation
Builds a transformation matrix.
XMMatrixTransformation2D
Builds a 2D transformation matrix in the xy plane.
XMMatrixTranslation
Builds a translation matrix from the specified offsets.
XMMatrixTranslationFromVector
Builds a translation matrix from a vector.
XMMatrixTranspose
Computes the transpose of a matrix.
XMMatrixVectorTensorProduct
Computes the outer tensor product of 2 vectors.

 

DirectXMath Library Functions