Matrix4x4 Structure

Represents a 4x4 matrix.

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

public value class Matrix4x4 : IEquatable<Matrix4x4>

The Matrix4x4 type exposes the following members.

  NameDescription
Public methodMatrix4x4(Matrix3x2)Creates a Matrix4x4 object from a specified Matrix3x2 object.
Public methodMatrix4x4(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)Creates a 4x4 matrix from the specified components.
Top

  NameDescription
Public propertyStatic memberIdentityGets the multiplicative identity matrix.
Public propertyIsIdentityIndicates whether the current matrix is the identity matrix.
Public propertyTranslationGets or sets the translation component of this matrix.
Top

  NameDescription
Public methodStatic memberAddAdds each element in one matrix with its corresponding element in a second matrix.
Public methodStatic memberCreateBillboardCreates a spherical billboard that rotates around a specified object position.
Public methodStatic memberCreateConstrainedBillboardCreates a cylindrical billboard that rotates around a specified axis.
Public methodStatic memberCreateFromAxisAngleCreates a matrix that rotates around an arbitrary vector.
Public methodStatic memberCreateFromQuaternionCreates a rotation matrix from the specified Quaternion rotation value.
Public methodStatic memberCreateFromYawPitchRollCreates a rotation matrix from the specified yaw, pitch, and roll.
Public methodStatic memberCreateLookAtCreates a view matrix.
Public methodStatic memberCreateOrthographicCreates an orthographic perspective matrix from the given view volume dimensions.
Public methodStatic memberCreateOrthographicOffCenterCreates a customized orthographic projection matrix.
Public methodStatic memberCreatePerspectiveCreates a perspective projection matrix from the given view volume dimensions.
Public methodStatic memberCreatePerspectiveFieldOfViewCreates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
Public methodStatic memberCreatePerspectiveOffCenterCreates a customized perspective projection matrix.
Public methodStatic memberCreateReflectionCreates a matrix that reflects the coordinate system about a specified plane.
Public methodStatic memberCreateRotationX(Single)Creates a matrix for rotating points around the X axis.
Public methodStatic memberCreateRotationX(Single, Vector3)Creates a matrix for rotating points around the X axis from a center point.
Public methodStatic memberCreateRotationY(Single)Creates a matrix for rotating points around the Y axis.
Public methodStatic memberCreateRotationY(Single, Vector3)The amount, in radians, by which to rotate around the Y axis from a center point.
Public methodStatic memberCreateRotationZ(Single)Creates a matrix for rotating points around the Z axis.
Public methodStatic memberCreateRotationZ(Single, Vector3)Creates a matrix for rotating points around the Z axis from a center point.
Public methodStatic memberCreateScale(Single)Creates a uniform scaling matrix that scale equally on each axis.
Public methodStatic memberCreateScale(Vector3)Creates a scaling matrix from the specified vector scale.
Public methodStatic memberCreateScale(Single, Vector3)Creates a uniform scaling matrix that scales equally on each axis with a center point.
Public methodStatic memberCreateScale(Vector3, Vector3)Creates a scaling matrix with a center point.
Public methodStatic memberCreateScale(Single, Single, Single)Creates a scaling matrix from the specified X, Y, and Z components.
Public methodStatic memberCreateScale(Single, Single, Single, Vector3)Creates a scaling matrix that is offset by a given center point.
Public methodStatic memberCreateShadowCreates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.
Public methodStatic memberCreateTranslation(Vector3)Creates a translation matrix from the specified 3-dimensional vector.
Public methodStatic memberCreateTranslation(Single, Single, Single)Creates a translation matrix from the specified X, Y, and Z components.
Public methodStatic memberCreateWorldCreates a world matrix with the specified parameters.
Public methodStatic memberDecomposeAttempts to extract the scale, translation, and rotation components from the given scale, rotation, or translation matrix. The return value indicates whether the operation succeeded.
Public methodEquals(Object)Returns a value that indicates whether this instance and a specified object are equal. (Overrides ValueType::Equals(Object).)
Public methodEquals(Matrix4x4)Returns a value that indicates whether this instance and another 4x4 matrix are equal.
Public methodGetDeterminantCalculates the determinant of the current 4x4 matrix.
Public methodGetHashCodeReturns the hash code for this instance. (Overrides ValueType::GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberInvertInverts the specified matrix. The return value indicates whether the operation succeeded.
Public methodStatic memberLerpPerforms a linear interpolation from one matrix to a second matrix based on a value that specifies the weighting of the second matrix.
Public methodStatic memberMultiply(Matrix4x4, Matrix4x4)Returns the matrix that results from multiplying two matrices together.
Public methodStatic memberMultiply(Matrix4x4, Single)Returns the matrix that results from scaling all the elements of a specified matrix by a scalar factor.
Public methodStatic memberNegateNegates the specified matrix by multiplying all its values by -1.
Public methodStatic memberSubtractSubtracts each element in a second matrix from its corresponding element in a first matrix.
Public methodToStringReturns a string that represents this matrix. (Overrides ValueType::ToString().)
Public methodStatic memberTransformTransforms the specified matrix by applying the specified Quaternion rotation.
Public methodStatic memberTransposeTransposes the rows and columns of a matrix.
Top

  NameDescription
Public operatorStatic memberAdditionAdds each element in one matrix with its corresponding element in a second matrix.
Public operatorStatic memberEqualityReturns a value that indicates whether the specified matrices are equal.
Public operatorStatic memberInequalityReturns a value that indicates whether the specified matrices are not equal.
Public operatorStatic memberMultiply(Matrix4x4, Matrix4x4)Returns the matrix that results from multiplying two matrices together.
Public operatorStatic memberMultiply(Matrix4x4, Single)Returns the matrix that results from scaling all the elements of a specified matrix by a scalar factor.
Public operatorStatic memberSubtractionSubtracts each element in a second matrix from its corresponding element in a first matrix.
Public operatorStatic memberUnaryNegationNegates the specified matrix by multiplying all its values by -1.
Top

  NameDescription
Public fieldM11The first element of the first row.
Public fieldM12The second element of the first row.
Public fieldM13The third element of the first row.
Public fieldM14The fourth element of the first row.
Public fieldM21The first element of the second row.
Public fieldM22The second element of the second row.
Public fieldM23The third element of the second row.
Public fieldM24The fourth element of the second row.
Public fieldM31The first element of the third row.
Public fieldM32The second element of the third row.
Public fieldM33The third element of the third row.
Public fieldM34The fourth element of the third row.
Public fieldM41The first element of the fourth row.
Public fieldM42The second element of the fourth row.
Public fieldM43The third element of the fourth row.
Public fieldM44The fourth element of the fourth row.
Top

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