Matrix4x4 Structure Members
In This Topic
The following tables list the members exposed by Matrix4x4.
Public Constructors
Public Fields
| Name | Description |
| Identity | The identity Matrix4x4. |
| M11 | Value at row 1 column 1 of the matrix. |
| M12 | Value at row 1 column 2 of the matrix. |
| M13 | Value at row 1 column 3 of the matrix. |
| M14 | Value at row 1 column 4 of the matrix. |
| M21 | Value at row 2 column 1 of the matrix. |
| M22 | Value at row 2 column 2 of the matrix. |
| M23 | Value at row 2 column 3 of the matrix. |
| M24 | Value at row 2 column 4 of the matrix. |
| M31 | Value at row 3 column 1 of the matrix. |
| M32 | Value at row 3 column 2 of the matrix. |
| M33 | Value at row 3 column 3 of the matrix. |
| M34 | Value at row 3 column 4 of the matrix. |
| M41 | Value at row 4 column 1 of the matrix. |
| M42 | Value at row 4 column 2 of the matrix. |
| M43 | Value at row 4 column 3 of the matrix. |
| M44 | Value at row 4 column 4 of the matrix. |
| SizeInBytes | The size of the Matrix4x4 type, in bytes. |
| Zero | A Matrix4x4 with all of its components set to zero. |
Top
Public Properties
| Name | Description |
| Column1 | Gets or sets the first column in the matrix; that is M11, M21, M31, and M41. |
| Column2 | Gets or sets the second column in the matrix; that is M12, M22, M32, and M42. |
| Column3 | Gets or sets the third column in the matrix; that is M13, M23, M33, and M43. |
| Column4 | Gets or sets the fourth column in the matrix; that is M14, M24, M34, and M44. |
| Determinant | Calculates the determinant of the matrix. |
| IsIdentity | Gets a value indicating whether this instance is an identity matrix. |
| Item | Overloaded. Gets or sets the component at the specified index. |
| Row1 | Gets or sets the first row in the matrix; that is M11, M12, M13, and M14. |
| Row2 | Gets or sets the second row in the matrix; that is M21, M22, M23, and M24. |
| Row3 | Gets or sets the third row in the matrix; that is M31, M32, M33, and M34. |
| Row4 | Gets or sets the fourth row in the matrix; that is M41, M42, M43, and M44. |
| ScaleVector | Gets or sets the scale of the matrix; that is M11, M22, and M33. |
| TranslationVector | Gets or sets the translation of the matrix; that is M41, M42, and M43. |
Top
Public Methods
| Name | Description |
| Add | Determines the sum of two matrices. |
| Billboard | Creates a spherical billboard that rotates around a specified object position. |
| ConstrainedBillboard | Creates a cylindrical billboard that rotates around a specified axis. |
| Divide | Divides a matrix by the given value. |
| Equals | Overloaded. Determines whether two instances of Matrix4x4 are equal. |
| ExchangeColumns | Exchanges two columns in the matrix. |
| ExchangeRows | Exchanges two rows in the matrix. |
| GetHashCode | Returns a hash code for this instance. |
| HadamardDivide | Element-wise division of two matrices. |
| HadamardProduct | Determines the Hadamard (element-wise) product of two matrices. |
| Invert | Calculates the inverse of the specified matrix. |
| Lerp | Performs a linear interpolation between two matrices based on the given weighting. |
| LookAt | Creates a view matrix. |
| Multiply | Overloaded. Scales a matrix by the given value. |
| Negate | Negates a matrix. |
| NegateRef | Negates a matrix. |
| Orthographic | Creates an orthographic perspective matrix from the given view volume dimensions. |
| OrthographicOffCenter | Creates a customized orthographic projection matrix. |
| Perspective | Creates a perspective projection matrix from the given view volume dimensions. |
| PerspectiveFieldOfView | Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances. |
| PerspectiveOffCenter | Creates a customized perspective projection matrix. |
| Reflection | Creates a matrix that reflects the coordinate system about a specified plane. |
| RotationAxis | Creates a matrix that rotates around an arbitary axis. |
| RotationX | Overloaded. Creates a matrix that rotates around the x-axis. |
| RotationY | Overloaded. Creates a matrix that rotates around the y-axis. |
| RotationZ | Overloaded. Creates a matrix that rotates around the z-axis. |
| Scale | Overloaded. Creates a matrix that uniformally scales along all three axis. |
| Shadow | Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source. |
| Skew | Creates a skew/shear matrix by means of a translation vector, a rotation vector, and a rotation angle. |
| Subtract | Determines the difference between two matrices. |
| ToArray | Creates an array containing the elements of the matrix. |
| ToString | Overloaded. Returns a string that represents the current object. |
| Translation | Overloaded. Creates a translation matrix using the specified offsets. |
| Transpose | Calculates the transpose of the specified matrix. |
| TransposeRef | Transposes the matrix. |
| World | Creates a world matrix with the specified parameters. |
| YawPitchRoll | Creates a rotation matrix from the specified yaw, pitch, and roll. |
Top
Public Operators
See Also