Struct XMFloat4X3
A 4*3 floating point matrix.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DXMath
Assembly: JeremyAnsel.DirectX.DXMath.dll
Syntax
public struct XMFloat4X3 : IEquatable<XMFloat4X3>
Constructors
| Edit this page View SourceXMFloat4X3(ReadOnlySpan<float>)
Initializes a new instance of the XMFloat4X3 struct.
Declaration
public XMFloat4X3(ReadOnlySpan<float> array)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<float> | array | the values of the matrix. |
XMFloat4X3(float, float, float, float, float, float, float, float, float, float, float, float)
Initializes a new instance of the XMFloat4X3 struct.
Declaration
public XMFloat4X3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33, float m41, float m42, float m43)
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 | 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 | 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 | 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. |
XMFloat4X3(float[]?)
Initializes a new instance of the XMFloat4X3 struct.
Declaration
public XMFloat4X3(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
[SuppressMessage("Microsoft.Design", "CA1023:IndexersShouldNotBeMultidimensional", Justification = "Reviewed")]
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 |
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 |
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 |
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 |
Methods
| Edit this page View SourceEquals(XMFloat4X3)
Declaration
public readonly bool Equals(XMFloat4X3 other)
Parameters
| Type | Name | Description |
|---|---|---|
| XMFloat4X3 | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceFromMatrix(XMMatrix)
Converts a XMMatrix to a XMFloat4X3.
Declaration
public static XMFloat4X3 FromMatrix(XMMatrix value)
Parameters
| Type | Name | Description |
|---|---|---|
| XMMatrix | value | A XMMatrix. |
Returns
| Type | Description |
|---|---|
| XMFloat4X3 | A XMFloat4X3. |
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
| Edit this page View SourceToMatrix()
Converts a XMFloat4X3 to a XMMatrix.
Declaration
public XMMatrix ToMatrix()
Returns
| Type | Description |
|---|---|
| XMMatrix | A XMMatrix. |
Operators
| Edit this page View Sourceoperator ==(XMFloat4X3, XMFloat4X3)
Declaration
public static bool operator ==(XMFloat4X3 left, XMFloat4X3 right)
Parameters
| Type | Name | Description |
|---|---|---|
| XMFloat4X3 | left | |
| XMFloat4X3 | right |
Returns
| Type | Description |
|---|---|
| bool |
implicit operator XMMatrix(XMFloat4X3)
Converts a XMFloat4X3 to a XMMatrix.
Declaration
[SuppressMessage("Usage", "CA2225:Les surcharges d'opérateur offrent d'autres méthodes nommées", Justification = "Reviewed.")]
public static implicit operator XMMatrix(XMFloat4X3 value)
Parameters
| Type | Name | Description |
|---|---|---|
| XMFloat4X3 | value | A XMFloat4X3. |
Returns
| Type | Description |
|---|---|
| XMMatrix | A XMMatrix. |
implicit operator XMFloat4X3(XMMatrix)
Converts a XMMatrix to a XMFloat4X3.
Declaration
[SuppressMessage("Usage", "CA2225:Les surcharges d'opérateur offrent d'autres méthodes nommées", Justification = "Reviewed.")]
public static implicit operator XMFloat4X3(XMMatrix value)
Parameters
| Type | Name | Description |
|---|---|---|
| XMMatrix | value | A XMMatrix. |
Returns
| Type | Description |
|---|---|
| XMFloat4X3 | A XMFloat4X3. |
operator !=(XMFloat4X3, XMFloat4X3)
Declaration
public static bool operator !=(XMFloat4X3 left, XMFloat4X3 right)
Parameters
| Type | Name | Description |
|---|---|---|
| XMFloat4X3 | left | |
| XMFloat4X3 | right |
Returns
| Type | Description |
|---|---|
| bool |