XMFLOAT3X3::XMFLOAT3X3(float,float,float,float,float,float,float,float,float) function (directxmath.h)
Initializes a new instance of the XMFLOAT3X3
structure from nine scalar
float
values.
Initializes a new instance of the XMFLOAT3X3 structure from nine
scalar float
values.
Syntax
void XMFLOAT3X3(
float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22
) noexcept;
Parameters
m00
Value used to initialize the _11 member (equivalently the m[0,0] member) of the XMFLOAT3X3
structure.
m01
Value used to initialize the _12 member (equivalently the
m[0,1]) of the XMFLOAT3X3
structure.
m02
Value used to initialize the _13 member (equivalently the
m[0,2]) of the XMFLOAT3X3
structure.
m10
Value used to initialize the _21 member (equivalently the
m[1,0]) of the XMFLOAT3X3
structure.
m11
Value used to initialize the _22 member (equivalently the
m[1,1]) of the XMFLOAT3X3
structure.
m12
Value used to initialize the _23 member (equivalently the
m[1,2]) of the XMFLOAT3X3
structure.
m20
Value used to initialize the _31 member (equivalently the
m[2,0]) of the XMFLOAT3X3
structure.
m21
Value used to initialize the _32 member (equivalently the
m[2,1]) of the XMFLOAT3X3
structure.
m22
Value used to initialize the _33 member (equivalently the
m[2,2]) of the XMFLOAT3X3
structure.
Return value
None
Remarks
The following two pseudocode examples demonstrate the operation of this constructor:
XMFLOAT3X3 mat;
mat._11 = m00;
mat._12 = m01;
mat._13 = m02;
mat._21 = m10;
mat._22 = m11;
mat._23 = m12;
mat._31 = m20;
mat._32 = m21;
mat._33 = m22;
Or
XMFLOAT3X3 mat;
mat.m[0,0] = m00;
mat.m[0,1] = m01;
mat.m[0,2] = m02;
mat.m[1,0] = m10;
mat.m[1,1] = m11;
mat.m[1,2] = m12;
mat.m[2,0] = m20;
mat.m[2,1] = m21;
mat.m[2,2] = m22;
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directxmath.h |
See also
Reference