# 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

TopicDescription

Builds an affine transformation matrix.

Builds a 2D affine transformation matrix in the xy plane.

Breaks down a general 3D transformation matrix into its scalar, rotational, and translational components.

Computes the determinant of a matrix.

Builds the identity matrix.

Computes the inverse of a matrix.

Tests whether a matrix is the identity matrix.

Tests whether any of the elements of a matrix are positive or negative infinity.

Tests whether any of the elements of a matrix are NaN.

Builds a view matrix for a left-handed coordinate system using a camera position, an up direction, and a focal point.

Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a focal point.

Builds a view matrix for a left-handed coordinate system using a camera position, an up direction, and a camera direction.

Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a camera direction.

Computes the product of two matrices.

Computes the transpose of the product of two matrices.

Builds an orthogonal projection matrix for a left-handed coordinate system.

Builds a custom orthogonal projection matrix for a left-handed coordinate system.

Builds a custom orthogonal projection matrix for a right-handed coordinate system.

Builds an orthogonal projection matrix for a right-handed coordinate system.

Builds a left-handed perspective projection matrix based on a field of view.

Builds a right-handed perspective projection matrix based on a field of view.

Builds a left-handed perspective projection matrix.

Builds a custom version of a left-handed perspective projection matrix.

Builds a custom version of a right-handed perspective projection matrix.

Builds a right-handed perspective projection matrix.

Builds a transformation matrix designed to reflect vectors through a given plane.

Builds a matrix that rotates around an arbitrary axis.

Builds a matrix that rotates around an arbitrary normal vector.

Builds a rotation matrix from a quaternion.

Builds a rotation matrix based on a given pitch, yaw, and roll (Euler angles).

Builds a rotation matrix based on a vector containing the Euler angles (pitch, yaw, and roll).

Builds a matrix that rotates around the x-axis.

Builds a matrix that rotates around the y-axis.

Builds a matrix that rotates around the z-axis.

Builds a matrix that scales along the x-axis, y-axis, and z-axis.

Builds a scaling matrix from a 3D vector.

Creates a matrix with float values.

Builds a transformation matrix that flattens geometry into a plane.

Builds a transformation matrix.

Builds a 2D transformation matrix in the xy plane.

Builds a translation matrix from the specified offsets.

Builds a translation matrix from a vector.

Computes the transpose of a matrix.

Build date: 11/16/2013