Matrix Members

The following tables list the members exposed by the Matrix type.

Public Constructors

Name Description
Public Method Matrix Initializes a new instance of Matrix.

Public Fields

Name Description
Public Field M11 Value at row 1 column 1 of the matrix.
Public Field M12 Value at row 1 column 2 of the matrix.
Public Field M13 Value at row 1 column 3 of the matrix.
Public Field M14 Value at row 1 column 4 of the matrix.
Public Field M21 Value at row 2 column 1 of the matrix.
Public Field M22 Value at row 2 column 2 of the matrix.
Public Field M23 Value at row 2 column 3 of the matrix.
Public Field M24 Value at row 2 column 4 of the matrix.
Public Field M31 Value at row 3 column 1 of the matrix.
Public Field M32 Value at row 3 column 2 of the matrix.
Public Field M33 Value at row 3 column 3 of the matrix.
Public Field M34 Value at row 3 column 4 of the matrix.
Public Field M41 Value at row 4 column 1 of the matrix.
Public Field M42 Value at row 4 column 2 of the matrix.
Public Field M43 Value at row 4 column 3 of the matrix.
Public Field M44 Value at row 4 column 4 of the matrix.

Public Properties

Name Description
Public Property Backward Gets and sets the backward vector of the Matrix.
Public Property Down Gets and sets the down vector of the Matrix.
Public Property Forward Gets and sets the forward vector of the Matrix.
Public Property Static Identity Returns an instance of the identity matrix.
Public Property Left Gets and sets the left vector of the Matrix.
Public Property Right Gets and sets the right vector of the Matrix.
Public Property Translation Gets and sets the translation vector of the Matrix.
Public Property Up Gets and sets the up vector of the Matrix.

Public Methods

Name Description
Public Method Static Add Overloaded. Adds a matrix to another matrix.
Public Method Static CreateBillboard Overloaded. Creates a spherical billboard that rotates around a specified object position.
Public Method Static CreateConstrainedBillboard Overloaded. Creates a cylindrical billboard that rotates around a specified axis.
Public Method Static CreateFromAxisAngle Overloaded. Creates a new Matrix that rotates around an arbitrary vector.
Public Method Static CreateFromQuaternion Overloaded. Creates a rotation Matrix from a Quaternion.
Public Method Static CreateFromYawPitchRoll Overloaded. Creates a new rotation matrix from a specified yaw, pitch, and roll.
Public Method Static CreateLookAt Overloaded. Creates a view matrix.
Public Method Static CreateOrthographic Overloaded. Builds an orthogonal projection matrix.
Public Method Static CreateOrthographicOffCenter Overloaded. Builds a customized, orthogonal projection matrix.
Public Method Static CreatePerspective Overloaded. Builds a perspective projection matrix.
Public Method Static CreatePerspectiveFieldOfView Overloaded. Builds a perspective projection matrix based on a field of view.
Public Method Static CreatePerspectiveOffCenter Overloaded. Builds a customized, perspective projection matrix.
Public Method Static CreateReflection Overloaded. Creates a Matrix that reflects the coordinate system about a specified Plane.
Public Method Static CreateRotationX Overloaded. Creates a matrix that can be used to rotate a set of vertices around the x-axis.
Public Method Static CreateRotationY Overloaded. Creates a matrix that can be used to rotate a set of vertices around the y-axis.
Public Method Static CreateRotationZ Overloaded. Creates a matrix that can be used to rotate a set of vertices around the z-axis.
Public Method Static CreateScale Overloaded. Creates a scaling Matrix.
Public Method Static CreateShadow Overloaded. Creates a Matrix that flattens geometry into a specified Plane as if casting a shadow from a specified light source.
Public Method Static CreateTranslation Overloaded. Creates a translation Matrix.
Public Method Static CreateWorld Overloaded. Creates a world matrix.
Public Method Decompose Extracts the scalar, translation, and rotation components from a 3D scale/rotate/translate (SRT) Matrix.
Public Method Determinant Calculates the determinant of the matrix.
Public Method Static Divide Overloaded. Divides a matrix by a scalar value or the components of another matrix.
Public Method Equals Overloaded. Returns a value that indicates whether the current instance is equal to a specified object.
Public Method GetHashCode Gets the hash code of this object.
Public Method GetType (Inherited from Object.)
Public Method Static Invert Overloaded. Calculates the inverse of a matrix.
Public Method Static Lerp Overloaded. Linearly interpolates between the corresponding values of two matrices.
Public Method Static Multiply Overloaded. Multiplies a matrix by a scalar value or another matrix.
Public Method Static Negate Overloaded. Negates individual elements of a matrix.
Public Method Static op_Addition Adds a matrix to another matrix.
Public Method Static op_Division Overloaded. Divides a matrix by a scalar value or the components of another matrix.
Public Method Static op_Equality Compares a matrix for equality with another matrix.
Public Method Static op_Inequality Tests a matrix for inequality with another matrix.
Public Method Static op_Multiply Overloaded. Multiplies a matrix by a scalar value or another matrix.
Public Method Static op_Subtraction Subtracts matrices.
Public Method Static op_UnaryNegation Negates individual elements of a matrix.
Public Method Static Subtract Overloaded. Subtracts matrices.
Public Method ToString Retrieves a string representation of the current object.
Public Method Static Transform Overloaded. Transforms a Matrix by applying a Quaternion rotation.
Public Method Static Transpose Overloaded. Transposes the rows and columns of a matrix.

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

Matrix Structure
Microsoft.Xna.Framework Namespace