Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Matrix4x4 Structure

.NET Framework (current version)
 

Represents a 4x4 matrix.

Namespace:   System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

public struct Matrix4x4 : IEquatable<Matrix4x4>

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticIdentity

Gets the multiplicative identity matrix.

System_CAPS_pubpropertyIsIdentity

Indicates whether the current matrix is the identity matrix.

System_CAPS_pubpropertyTranslation

Gets or sets the translation component of this matrix.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAdd(Matrix4x4, Matrix4x4)

Adds each element in one matrix with its corresponding element in a second matrix.

System_CAPS_pubmethodSystem_CAPS_staticCreateBillboard(Vector3, Vector3, Vector3, Vector3)

Creates a spherical billboard that rotates around a specified object position.

System_CAPS_pubmethodSystem_CAPS_staticCreateConstrainedBillboard(Vector3, Vector3, Vector3, Vector3, Vector3)

Creates a cylindrical billboard that rotates around a specified axis.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromAxisAngle(Vector3, Single)

Creates a matrix that rotates around an arbitrary vector.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromQuaternion(Quaternion)

Creates a rotation matrix from the specified Quaternion rotation value.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromYawPitchRoll(Single, Single, Single)

Creates a rotation matrix from the specified yaw, pitch, and roll.

System_CAPS_pubmethodSystem_CAPS_staticCreateLookAt(Vector3, Vector3, Vector3)

Creates a view matrix.

System_CAPS_pubmethodSystem_CAPS_staticCreateOrthographic(Single, Single, Single, Single)

Creates an orthographic perspective matrix from the given view volume dimensions.

System_CAPS_pubmethodSystem_CAPS_staticCreateOrthographicOffCenter(Single, Single, Single, Single, Single, Single)

Creates a customized orthographic projection matrix.

System_CAPS_pubmethodSystem_CAPS_staticCreatePerspective(Single, Single, Single, Single)

Creates a perspective projection matrix from the given view volume dimensions.

System_CAPS_pubmethodSystem_CAPS_staticCreatePerspectiveFieldOfView(Single, Single, Single, Single)

Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.

System_CAPS_pubmethodSystem_CAPS_staticCreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single)

Creates a customized perspective projection matrix.

System_CAPS_pubmethodSystem_CAPS_staticCreateReflection(Plane)

Creates a matrix that reflects the coordinate system about a specified plane.

System_CAPS_pubmethodSystem_CAPS_staticCreateRotationX(Single)

Creates a matrix for rotating points around the X axis.

System_CAPS_pubmethodSystem_CAPS_staticCreateRotationX(Single, Vector3)

Creates a matrix for rotating points around the X axis from a center point.

System_CAPS_pubmethodSystem_CAPS_staticCreateRotationY(Single)

Creates a matrix for rotating points around the Y axis.

System_CAPS_pubmethodSystem_CAPS_staticCreateRotationY(Single, Vector3)

The amount, in radians, by which to rotate around the Y axis from a center point.

System_CAPS_pubmethodSystem_CAPS_staticCreateRotationZ(Single)

Creates a matrix for rotating points around the Z axis.

System_CAPS_pubmethodSystem_CAPS_staticCreateRotationZ(Single, Vector3)

Creates a matrix for rotating points around the Z axis from a center point.

System_CAPS_pubmethodSystem_CAPS_staticCreateScale(Single)

Creates a uniform scaling matrix that scale equally on each axis.

System_CAPS_pubmethodSystem_CAPS_staticCreateScale(Single, Single, Single)

Creates a scaling matrix from the specified X, Y, and Z components.

System_CAPS_pubmethodSystem_CAPS_staticCreateScale(Single, Single, Single, Vector3)

Creates a scaling matrix that is offset by a given center point.

System_CAPS_pubmethodSystem_CAPS_staticCreateScale(Single, Vector3)

Creates a uniform scaling matrix that scales equally on each axis with a center point.

System_CAPS_pubmethodSystem_CAPS_staticCreateScale(Vector3)

Creates a scaling matrix from the specified vector scale.

System_CAPS_pubmethodSystem_CAPS_staticCreateScale(Vector3, Vector3)

Creates a scaling matrix with a center point.

System_CAPS_pubmethodSystem_CAPS_staticCreateShadow(Vector3, Plane)

Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.

System_CAPS_pubmethodSystem_CAPS_staticCreateTranslation(Single, Single, Single)

Creates a translation matrix from the specified X, Y, and Z components.

System_CAPS_pubmethodSystem_CAPS_staticCreateTranslation(Vector3)

Creates a translation matrix from the specified 3-dimensional vector.

System_CAPS_pubmethodSystem_CAPS_staticCreateWorld(Vector3, Vector3, Vector3)

Creates a world matrix with the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticDecompose(Matrix4x4, Vector3, Quaternion, Vector3)

Attempts to extract the scale, translation, and rotation components from the given scale, rotation, or translation matrix. The return value indicates whether the operation succeeded.

System_CAPS_pubmethodEquals(Matrix4x4)

Returns a value that indicates whether this instance and another 4x4 matrix are equal.

System_CAPS_pubmethodEquals(Object)

Returns a value that indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetDeterminant()

Calculates the determinant of the current 4x4 matrix.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticInvert(Matrix4x4, Matrix4x4)

Inverts the specified matrix. The return value indicates whether the operation succeeded.

System_CAPS_pubmethodSystem_CAPS_staticLerp(Matrix4x4, Matrix4x4, Single)

Performs a linear interpolation from one matrix to a second matrix based on a value that specifies the weighting of the second matrix.

System_CAPS_pubmethodSystem_CAPS_staticMultiply(Matrix4x4, Matrix4x4)

Returns the matrix that results from multiplying two matrices together.

System_CAPS_pubmethodSystem_CAPS_staticMultiply(Matrix4x4, Single)

Returns the matrix that results from scaling all the elements of a specified matrix by a scalar factor.

System_CAPS_pubmethodSystem_CAPS_staticNegate(Matrix4x4)

Negates the specified matrix by multiplying all its values by -1.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(Matrix4x4, Matrix4x4)

Subtracts each element in a second matrix from its corresponding element in a first matrix.

System_CAPS_pubmethodToString()

Returns a string that represents this matrix. (Overrides ValueType.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticTransform(Matrix4x4, Quaternion)

Transforms the specified matrix by applying the specified Quaternion rotation.

System_CAPS_pubmethodSystem_CAPS_staticTranspose(Matrix4x4)

Transposes the rows and columns of a matrix.

NameDescription
System_CAPS_pubfieldM11

The first element of the first row.

System_CAPS_pubfieldM12

The second element of the first row.

System_CAPS_pubfieldM13

The third element of the first row.

System_CAPS_pubfieldM14

The fourth element of the first row.

System_CAPS_pubfieldM21

The first element of the second row.

System_CAPS_pubfieldM22

The second element of the second row.

System_CAPS_pubfieldM23

The third element of the second row.

System_CAPS_pubfieldM24

The fourth element of the second row.

System_CAPS_pubfieldM31

The first element of the third row.

System_CAPS_pubfieldM32

The second element of the third row.

System_CAPS_pubfieldM33

The third element of the third row.

System_CAPS_pubfieldM34

The fourth element of the third row.

System_CAPS_pubfieldM41

The first element of the fourth row.

System_CAPS_pubfieldM42

The second element of the fourth row.

System_CAPS_pubfieldM43

The third element of the fourth row.

System_CAPS_pubfieldM44

The fourth element of the fourth row.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(Matrix4x4, Matrix4x4)

Adds each element in one matrix with its corresponding element in a second matrix.

System_CAPS_puboperatorSystem_CAPS_staticEquality(Matrix4x4, Matrix4x4)

Returns a value that indicates whether the specified matrices are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(Matrix4x4, Matrix4x4)

Returns a value that indicates whether the specified matrices are not equal.

System_CAPS_puboperatorSystem_CAPS_staticMultiply(Matrix4x4, Matrix4x4)

Returns the matrix that results from multiplying two matrices together.

System_CAPS_puboperatorSystem_CAPS_staticMultiply(Matrix4x4, Single)

Returns the matrix that results from scaling all the elements of a specified matrix by a scalar factor.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(Matrix4x4, Matrix4x4)

Subtracts each element in a second matrix from its corresponding element in a first matrix.

System_CAPS_puboperatorSystem_CAPS_staticUnaryNegation(Matrix4x4)

Negates the specified matrix by multiplying all its values by -1.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: