Struct XMFloat4X4
A 4*4 floating point matrix.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DXMath
Assembly: JeremyAnsel.DirectX.DXMath.dll
Syntax
public struct XMFloat4X4 : IEquatable<XMFloat4X4>
Constructors
| Edit this page View SourceXMFloat4X4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)
Initializes a new instance of the XMFloat4X4 struct.
Declaration
public XMFloat4X4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
Parameters
Type | Name | Description |
---|---|---|
float | m11 | The value in the first row and first column. |
float | m12 | The value in the first row and second column. |
float | m13 | The value in the first row and third column. |
float | m14 | The value in the first row and fourth column. |
float | m21 | The value in the second row and first column. |
float | m22 | The value in the second row and second column. |
float | m23 | The value in the second row and third column. |
float | m24 | The value in the second row and fourth column. |
float | m31 | The value in the third row and first column. |
float | m32 | The value in the third row and second column. |
float | m33 | The value in the third row and third column. |
float | m34 | The value in the third row and fourth column. |
float | m41 | The value in the fourth row and first column. |
float | m42 | The value in the fourth row and second column. |
float | m43 | The value in the fourth row and third column. |
float | m44 | The value in the fourth row and fourth column. |
XMFloat4X4(float[])
Initializes a new instance of the XMFloat4X4 struct.
Declaration
public XMFloat4X4(float[] array)
Parameters
Type | Name | Description |
---|---|---|
float[] | array | The values of the matrix. |
Properties
| Edit this page View Sourcethis[int, int]
Gets or sets an element specified by row and column.
Declaration
public float this[int row, int column] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | row | The row containing the matrix element. |
int | column | The column containing the matrix element. |
Property Value
Type | Description |
---|---|
float | A float value. |
M11
Gets or sets the value in the first row and first column.
Declaration
public float M11 { get; set; }
Property Value
Type | Description |
---|---|
float |
M12
Gets or sets the value in the first row and second column.
Declaration
public float M12 { get; set; }
Property Value
Type | Description |
---|---|
float |
M13
Gets or sets the value in the first row and third column.
Declaration
public float M13 { get; set; }
Property Value
Type | Description |
---|---|
float |
M14
Gets or sets the value in the first row and fourth column.
Declaration
public float M14 { get; set; }
Property Value
Type | Description |
---|---|
float |
M21
Gets or sets the value in the second row and first column.
Declaration
public float M21 { get; set; }
Property Value
Type | Description |
---|---|
float |
M22
Gets or sets the value in the second row and second column.
Declaration
public float M22 { get; set; }
Property Value
Type | Description |
---|---|
float |
M23
Gets or sets the value in the second row and third column.
Declaration
public float M23 { get; set; }
Property Value
Type | Description |
---|---|
float |
M24
Gets or sets the value in the second row and fourth column.
Declaration
public float M24 { get; set; }
Property Value
Type | Description |
---|---|
float |
M31
Gets or sets the value in the third row and first column.
Declaration
public float M31 { get; set; }
Property Value
Type | Description |
---|---|
float |
M32
Gets or sets the value in the third row and second column.
Declaration
public float M32 { get; set; }
Property Value
Type | Description |
---|---|
float |
M33
Gets or sets the value in the third row and third column.
Declaration
public float M33 { get; set; }
Property Value
Type | Description |
---|---|
float |
M34
Gets or sets the value in the third row and fourth column.
Declaration
public float M34 { get; set; }
Property Value
Type | Description |
---|---|
float |
M41
Gets or sets the value in the fourth row and first column.
Declaration
public float M41 { get; set; }
Property Value
Type | Description |
---|---|
float |
M42
Gets or sets the value in the fourth row and second column.
Declaration
public float M42 { get; set; }
Property Value
Type | Description |
---|---|
float |
M43
Gets or sets the value in the fourth row and third column.
Declaration
public float M43 { get; set; }
Property Value
Type | Description |
---|---|
float |
M44
Gets or sets the value in the fourth row and fourth column.
Declaration
public float M44 { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(XMFloat4X4)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(XMFloat4X4 other)
Parameters
Type | Name | Description |
---|---|---|
XMFloat4X4 | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceFromMatrix(XMMatrix)
Converts a XMMatrix to a XMFloat4X4.
Declaration
public static XMFloat4X4 FromMatrix(XMMatrix value)
Parameters
Type | Name | Description |
---|---|---|
XMMatrix | value | A XMMatrix. |
Returns
Type | Description |
---|---|
XMFloat4X4 | A XMFloat4X4. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToMatrix()
Converts a XMFloat4X4 to a XMMatrix.
Declaration
public XMMatrix ToMatrix()
Returns
Type | Description |
---|---|
XMMatrix | A XMMatrix. |
Operators
| Edit this page View Sourceoperator ==(XMFloat4X4, XMFloat4X4)
Compares two XMFloat4X4 objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(XMFloat4X4 left, XMFloat4X4 right)
Parameters
Type | Name | Description |
---|---|---|
XMFloat4X4 | left | The left XMFloat4X4 to compare. |
XMFloat4X4 | right | The right XMFloat4X4 to compare. |
Returns
Type | Description |
---|---|
bool |
implicit operator XMMatrix(XMFloat4X4)
Converts a XMFloat4X4 to a XMMatrix.
Declaration
public static implicit operator XMMatrix(XMFloat4X4 value)
Parameters
Type | Name | Description |
---|---|---|
XMFloat4X4 | value | A XMFloat4X4. |
Returns
Type | Description |
---|---|
XMMatrix | A XMMatrix. |
implicit operator XMFloat4X4(XMMatrix)
Converts a XMMatrix to a XMFloat4X4.
Declaration
public static implicit operator XMFloat4X4(XMMatrix value)
Parameters
Type | Name | Description |
---|---|---|
XMMatrix | value | A XMMatrix. |
Returns
Type | Description |
---|---|
XMFloat4X4 | A XMFloat4X4. |
operator !=(XMFloat4X4, XMFloat4X4)
Compares two XMFloat4X4 objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(XMFloat4X4 left, XMFloat4X4 right)
Parameters
Type | Name | Description |
---|---|---|
XMFloat4X4 | left | The left XMFloat4X4 to compare. |
XMFloat4X4 | right | The right XMFloat4X4 to compare. |
Returns
Type | Description |
---|---|
bool |