Struct XMFloat3X3
A 3*3 floating point matrix.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DXMath
Assembly: JeremyAnsel.DirectX.DXMath.dll
Syntax
public struct XMFloat3X3 : IEquatable<XMFloat3X3>
Constructors
| Edit this page View SourceXMFloat3X3(float, float, float, float, float, float, float, float, float)
Initializes a new instance of the XMFloat3X3 struct.
Declaration
public XMFloat3X3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
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. |
XMFloat3X3(float[])
Initializes a new instance of the XMFloat3X3 struct.
Declaration
public XMFloat3X3(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 |
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 |
Methods
| Edit this page View SourceEquals(XMFloat3X3)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(XMFloat3X3 other)
Parameters
Type | Name | Description |
---|---|---|
XMFloat3X3 | 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 XMFloat3X3.
Declaration
public static XMFloat3X3 FromMatrix(XMMatrix value)
Parameters
Type | Name | Description |
---|---|---|
XMMatrix | value | A XMMatrix. |
Returns
Type | Description |
---|---|
XMFloat3X3 | A XMFloat3X3. |
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 XMFloat3X3 to a XMMatrix.
Declaration
public XMMatrix ToMatrix()
Returns
Type | Description |
---|---|
XMMatrix | A XMMatrix. |
Operators
| Edit this page View Sourceoperator ==(XMFloat3X3, XMFloat3X3)
Compares two XMFloat3X3 objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(XMFloat3X3 left, XMFloat3X3 right)
Parameters
Type | Name | Description |
---|---|---|
XMFloat3X3 | left | The left XMFloat3X3 to compare. |
XMFloat3X3 | right | The right XMFloat3X3 to compare. |
Returns
Type | Description |
---|---|
bool |
implicit operator XMMatrix(XMFloat3X3)
Converts a XMFloat3X3 to a XMMatrix.
Declaration
public static implicit operator XMMatrix(XMFloat3X3 value)
Parameters
Type | Name | Description |
---|---|---|
XMFloat3X3 | value | A XMFloat3X3. |
Returns
Type | Description |
---|---|
XMMatrix | A XMMatrix. |
implicit operator XMFloat3X3(XMMatrix)
Converts a XMMatrix to a XMFloat3X3.
Declaration
public static implicit operator XMFloat3X3(XMMatrix value)
Parameters
Type | Name | Description |
---|---|---|
XMMatrix | value | A XMMatrix. |
Returns
Type | Description |
---|---|
XMFloat3X3 | A XMFloat3X3. |
operator !=(XMFloat3X3, XMFloat3X3)
Compares two XMFloat3X3 objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(XMFloat3X3 left, XMFloat3X3 right)
Parameters
Type | Name | Description |
---|---|---|
XMFloat3X3 | left | The left XMFloat3X3 to compare. |
XMFloat3X3 | right | The right XMFloat3X3 to compare. |
Returns
Type | Description |
---|---|
bool |