#include <fbxmatrix.h>
|
| FbxMatrix () |
| Constructor (initialize to an identity matrix) More...
|
|
| FbxMatrix (const FbxMatrix &pM) |
| Copy constructor. More...
|
|
| FbxMatrix (const FbxAMatrix &pM) |
| Copy constructor for affine matrix. More...
|
|
| FbxMatrix (const FbxVector4 &pT, const FbxVector4 &pR, const FbxVector4 &pS) |
| TRS Constructor. More...
|
|
| FbxMatrix (const FbxVector4 &pT, const FbxQuaternion &pQ, const FbxVector4 &pS) |
| TQS Constructor. More...
|
|
| FbxMatrix (const double p00, const double p10, const double p20, const double p30, const double p01, const double p11, const double p21, const double p31, const double p02, const double p12, const double p22, const double p32, const double p03, const double p13, const double p23, const double p33) |
| 16 double constructor. More...
|
|
| ~FbxMatrix () |
| Destructor. More...
|
|
|
double | Get (int pY, int pX) const |
| Retrieve matrix element. More...
|
|
FbxVector4 | GetRow (int pY) const |
| Extract a row vector. More...
|
|
FbxVector4 | GetColumn (int pX) const |
| Extract a column vector. More...
|
|
void | Set (int pY, int pX, double pValue) |
| Set matrix element. More...
|
|
void | SetTRS (const FbxVector4 &pT, const FbxVector4 &pR, const FbxVector4 &pS) |
| Set matrix. More...
|
|
void | SetTQS (const FbxVector4 &pT, const FbxQuaternion &pQ, const FbxVector4 &pS) |
| Set matrix. More...
|
|
void | SetRow (int pY, const FbxVector4 &pRow) |
| Set a matrix row. More...
|
|
void | SetColumn (int pX, const FbxVector4 &pColumn) |
| Set a matrix column. More...
|
|
void | GetElements (FbxVector4 &pTranslation, FbxQuaternion &pRotation, FbxVector4 &pShearing, FbxVector4 &pScaling, double &pSign) const |
| Decompose the affine matrix into elements of translation, rotation, shearing, scaling and sign of determinant. More...
|
|
void | GetElements (FbxVector4 &pTranslation, FbxVector4 &pRotation, FbxVector4 &pShearing, FbxVector4 &pScaling, double &pSign) const |
| Decompose the affine matrix into elements of translation, rotation, shearing, scaling and sign of determinant. More...
|
|
◆ double
typedef const double(kDouble44)[4][4] |
Define 4*4 array as a new type.
Definition at line 214 of file fbxmatrix.h.
◆ FbxMatrix() [1/6]
Constructor (initialize to an identity matrix)
◆ FbxMatrix() [2/6]
Copy constructor.
- Parameters
-
pM | Another FbxMatrix object copied to this one. |
◆ FbxMatrix() [3/6]
Copy constructor for affine matrix.
- Parameters
-
◆ FbxMatrix() [4/6]
TRS Constructor.
- Parameters
-
pT | Translation vector. |
pR | Euler rotation vector. |
pS | Scale vector. |
◆ FbxMatrix() [5/6]
TQS Constructor.
- Parameters
-
pT | Translation vector. |
pQ | Quaternion. |
pS | Scale vector. |
◆ FbxMatrix() [6/6]
FbxMatrix |
( |
const double |
p00, |
|
|
const double |
p10, |
|
|
const double |
p20, |
|
|
const double |
p30, |
|
|
const double |
p01, |
|
|
const double |
p11, |
|
|
const double |
p21, |
|
|
const double |
p31, |
|
|
const double |
p02, |
|
|
const double |
p12, |
|
|
const double |
p22, |
|
|
const double |
p32, |
|
|
const double |
p03, |
|
|
const double |
p13, |
|
|
const double |
p23, |
|
|
const double |
p33 |
|
) |
| |
16 double constructor.
- Parameters
-
p00 | Value at column 0 row 0. |
p10 | Value at column 1 row 0. |
p20 | Value at column 2 row 0. |
p30 | Value at column 3 row 0. |
p01 | Value at column 0 row 1. |
p11 | Value at column 1 row 1. |
p21 | Value at column 2 row 1. |
p31 | Value at column 3 row 1. |
p02 | Value at column 0 row 2. |
p12 | Value at column 1 row 2. |
p22 | Value at column 2 row 2. |
p32 | Value at column 3 row 2. |
p03 | Value at column 0 row 3. |
p13 | Value at column 1 row 3. |
p23 | Value at column 2 row 3. |
p33 | Value at column 3 row 3. |
◆ ~FbxMatrix()
◆ Get()
double Get |
( |
int |
pY, |
|
|
int |
pX |
|
) |
| const |
Retrieve matrix element.
- Parameters
-
pY | Row index. |
pX | Column index. |
- Returns
- Value at element [ pX, pY ] of the matrix.
◆ GetRow()
◆ GetColumn()
Extract a column vector.
- Parameters
-
- Returns
- The column vector.
◆ Set()
void Set |
( |
int |
pY, |
|
|
int |
pX, |
|
|
double |
pValue |
|
) |
| |
Set matrix element.
- Parameters
-
pY | Row index. |
pX | Column index. |
pValue | New component value. |
◆ SetTRS()
Set matrix.
- Parameters
-
pT | Translation vector. |
pR | Euler rotation vector. |
pS | Scale vector. |
- Examples:
- ExportScene01/main.cxx.
◆ SetTQS()
Set matrix.
- Parameters
-
pT | Translation vector. |
pQ | Quaternion. |
pS | Scale vector. |
◆ SetRow()
Set a matrix row.
- Parameters
-
pY | Row index. |
pRow | Row vector. |
◆ SetColumn()
void SetColumn |
( |
int |
pX, |
|
|
const FbxVector4 & |
pColumn |
|
) |
| |
Set a matrix column.
- Parameters
-
pX | Column index. |
pColumn | Column vector. |
◆ GetElements() [1/2]
Decompose the affine matrix into elements of translation, rotation, shearing, scaling and sign of determinant.
- Parameters
-
pTranslation | Translation element. |
pRotation | Rotation element. |
pShearing | Shearing element. |
pScaling | Scaling element. |
pSign | Sign of determinant. |
◆ GetElements() [2/2]
Decompose the affine matrix into elements of translation, rotation, shearing, scaling and sign of determinant.
- Parameters
-
pTranslation | Translation element. |
pRotation | Rotation element. |
pShearing | Shearing element. |
pScaling | Scaling element. |
pSign | Sign of determinant. |
◆ operator=()
Assignment operator.
- Parameters
-
◆ operator-() [1/2]
Unary minus operator.
- Returns
- A matrix where each element is multiplied by -1.
◆ operator+()
Add two matrices together.
- Parameters
-
- Returns
- The result of this matrix + pMatrix.
◆ operator-() [2/2]
Subtract a matrix from another matrix.
- Parameters
-
- Returns
- The result of this matrix - pMatrix.
◆ operator*()
Multiply two matrices.
- Parameters
-
- Returns
- The result of this matrix * pMatrix.
◆ operator+=()
Add two matrices together.
- Parameters
-
- Returns
- The result of this matrix + pMatrix, replacing this matrix.
◆ operator-=()
Subtract a matrix from another matrix.
- Parameters
-
- Returns
- The result of this matrix - pMatrix, replacing this matrix.
◆ operator*=()
Multiply two matrices.
- Parameters
-
- Returns
- The result of this matrix * pMatrix, replacing this matrix.
◆ operator==() [1/2]
bool operator== |
( |
const FbxMatrix & |
pM | ) |
const |
Equivalence operator.
- Parameters
-
pM | The matrix to be compared against this matrix. |
- Returns
true
if the two matrices are equal (each element is within a FBXSDK_TOLERANCE tolerance), false
otherwise.
◆ operator==() [2/2]
Equivalence operator.
- Parameters
-
pM | The affine matrix to be compared against this matrix. |
- Returns
true
if the two matrices are equal (each element is within a FBXSDK_TOLERANCE tolerance), false
otherwise.
◆ operator!=() [1/2]
bool operator!= |
( |
const FbxMatrix & |
pM | ) |
const |
Non-equivalence operator.
- Parameters
-
pM | The matrix to be compared against this matrix. |
- Returns
false
if the two matrices are equal (each element is within a FBXSDK_TOLERANCE tolerance), true
otherwise.
◆ operator!=() [2/2]
Non-equivalence operator.
- Parameters
-
pM | The affine matrix to be compared against this matrix. |
- Returns
false
if the two matrices are equal (each element is within a FBXSDK_TOLERANCE tolerance), true
otherwise.
◆ operator double *()
Cast the vector in a double pointer.
◆ operator const double *()
operator const double * |
( |
| ) |
const |
Cast the vector in a const double pointer.
◆ Double44()
kDouble44& Double44 |
( |
| ) |
const |
|
inline |
Cast the matrix in a reference to a 4*4 array.
Definition at line 217 of file fbxmatrix.h.
217 {
return *((kDouble44 *)&
mData[0][0]); }
◆ Inverse()
Calculate the matrix inverse.
- Returns
- The inverse matrix.
◆ Transpose()
Calculate the matrix transpose.
- Returns
- This matrix transposed.
◆ SetIdentity()
◆ SetLookToLH()
Set the matrix to a "Look To" left handed.
- Parameters
-
pEyePosition | The position of the eye. |
pEyeDirection | The direction of the eye. |
pUpDirection | The up direction of the eye. |
◆ SetLookToRH()
Set the matrix to a "Look To" right handed.
- Parameters
-
pEyePosition | The position of the eye. |
pEyeDirection | The direction of the eye. |
pUpDirection | The up direction of the eye. |
◆ SetLookAtLH()
Set the matrix to a "Look At" left handed.
- Parameters
-
pEyePosition | The position of the eye. |
pLookAt | The look at position of the eye focus. |
pUpDirection | The up direction of the eye. |
◆ SetLookAtRH()
Set the matrix values as a "Look At" right handed.
- Parameters
-
pEyePosition | The position of the eye. |
pLookAt | The look at position of the eye focus. |
pUpDirection | The up direction of the eye. |
◆ MultNormalize()
Multiply this matrix by pVector, the w component is normalized to 1.
- Parameters
-
- Returns
- The result of this matrix * pVector.
The documentation for this class was generated from the following file: