Name | Description | |
---|---|---|

Matrix4x4 Constructor | Overloaded. |

Matrix4x4 Structure Members

In This Topic

The following tables list the members exposed by Matrix4x4.

Public Constructors

Name | Description | |
---|---|---|

Matrix4x4 Constructor | Overloaded. |

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. |

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. |

Public Methods

Name | Description | |
---|---|---|

Add | Determines the sum of two matrices. | |

AddRef | Determines the sum of two matrices. | |

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

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

ConstrainedBillboard | Creates a cylindrical billboard that rotates around a specified axis. | |

ConstrainedBillboardRef | Creates a cylindrical billboard that rotates around a specified axis. | |

Divide | Divides a matrix by the given value. | |

DivideRef | Divides a matrix by the given value. | |

Equals | Overloaded. Determines whether the specified Matrix4x4 is equal to this instance. | |

EqualsRef | Determines whether the specified Matrix4x4 is equal to this instance. | |

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. | |

HadamardDivideRef | Element-wise division of two matrices. | |

HadamardProduct | Determines the Hadamard (element-wise) product of two matrices. | |

HadamardProductRef | Determines the Hadamard (element-wise) product of two matrices. | |

Invert | Calculates the inverse of the specified matrix. | |

InvertRef | Overloaded. Inverts the matrix. | |

Lerp | Performs a linear interpolation between two matrices based on the given weighting. | |

LerpRef | Performs a linear interpolation between two matrices based on the given weighting. | |

LookAt | Creates a view matrix. | |

LookAtRef | Creates a view matrix. | |

MatrixProduct | Determines the product of two matrices. | |

MatrixProductRef | Determines the product of two matrices. | |

Multiply | Overloaded. Scales a matrix by the given value. | |

MultiplyRef | Scales a matrix by the given value. | |

Negate | Negates a matrix. | |

NegateRef | Overloaded. 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. | |

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

RotationAxis | Creates a matrix that rotates around an arbitary axis. | |

RotationAxisRef | Creates a matrix that rotates around an arbitary axis. | |

RotationX | Overloaded. Creates a matrix that rotates around the x-axis. | |

RotationXRef | Overloaded. Creates a matrix that rotates around the x-axis. | |

RotationY | Overloaded. Creates a matrix that rotates around the y-axis. | |

RotationYRef | Overloaded. Creates a matrix that rotates around the y-axis. | |

RotationZ | Overloaded. Creates a matrix that rotates around the z-axis. | |

RotationZRef | Overloaded. Creates a matrix that rotates around the z-axis. | |

Scale | Overloaded. Creates a matrix that uniformally scales along all three axis. | |

ScaleRef | 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. | |

ShadowRef | 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. | |

SkewRef | 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. | |

SubtractRef | 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. | |

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

Transpose | Calculates the transpose of the specified matrix. | |

TransposeRef | Overloaded. Transposes the matrix. | |

World | Creates a world matrix with the specified parameters. | |

WorldRef | Creates a world matrix with the specified parameters. | |

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

Public Operators

Addition | Adds two matricies. |

Division | Scales a matrix by a given value. |

Equality | Tests for equality between two objects. |

Inequality | Tests for inequality between two objects. |

Multiplication | Overloaded. Scales a matrix by a given value. |

Subtraction | Subtracts two matricies. |

Unary Negation | Negates a matrix. |

See Also