#include<kfbxxmatrix.h>
Inherits fbxVectorTemplate4.
Matrices are defined using the Column Major scheme. When aKFbxXMatrixrepresents a transformation (translation, rotation and scale), the last row of the matrix represents the translation part of the transformation.
Definition at line67of filekfbxxmatrix.h.
Constructors and Destructor | |
KFbxXMatrix() | |
Constructor. | |
KFbxXMatrix(constKFbxXMatrix&pXMatrix) | |
Copy constructor. | |
KFbxXMatrix(KFbxVector4&pT,KFbxVector4&pR,KFbxVector4&pS) | |
Constructor. | |
~KFbxXMatrix() | |
Destructor. | |
Access | |
double | Get(int pY, int pX) const |
Retrieve matrix element. | |
KFbxVector4 | GetT() |
Extract translation vector. | |
KFbxVector4 | GetR() |
Extract rotation vector. | |
KFbxQuaternion | GetQ() |
Extract quaternion vector. | |
KFbxVector4 | GetS() |
Extract scale vector. | |
KFbxVector4 | GetRow(int pY) |
Extract a row vector. | |
KFbxVector4 | GetColumn(int pX) |
Extract a column vector. | |
void | SetIdentity() |
Set matrix to identity. | |
void | SetT(KFbxVector4&pT) |
Set matrix's translation. | |
void | SetR(KFbxVector4&pR) |
Set matrix's Euler rotation. | |
void | SetQ(KFbxQuaternion&pQ) |
Set matrix's quaternion. | |
void | SetS(KFbxVector4&pS) |
Set matrix's scale. | |
void | SetTRS(KFbxVector4&pT,KFbxVector4&pR,KFbxVector4&pS) |
Set matrix. | |
void | SetTQS(KFbxVector4&pT,KFbxQuaternion&pQ,KFbxVector4&pS) |
Set matrix. | |
KFbxXMatrix& | operator=(constKFbxXMatrix&pM) |
Assignment operator. | |
Scalar Operations | |
KFbxXMatrix | operator*(double pValue) |
Multiply matrix by a scalar value. | |
KFbxXMatrix | operator/(double pValue) |
Divide matrix by a scalar value. | |
KFbxXMatrix& | operator*=(double pValue) |
Multiply matrix by a scalar value. | |
KFbxXMatrix& | operator/=(double pValue) |
Divide matrix by a scalar value. | |
Vector Operations | |
KFbxVector4 | MultT(KFbxVector4&pVector4) |
Multiply matrix by a translation vector. | |
KFbxVector4 | MultR(KFbxVector4&pVector4) |
Multiply matrix by an Euler rotation vector. | |
KFbxQuaternion | MultQ(KFbxQuaternion&pQuaternion) |
Multiply matrix by a quaternion. | |
KFbxVector4 | MultS(KFbxVector4&pVector4) |
Multiply matrix by a scale vector. | |
Matrix Operations | |
KFbxXMatrix | operator-() |
Unary minus operator. | |
KFbxXMatrix | operator*(KFbxXMatrix&pXMatrix) |
Multiply two matrices together. | |
KFbxXMatrix& | operator*=(KFbxXMatrix&pXMatrix) |
Multiply two matrices together. | |
KFbxXMatrix | Inverse() |
Calculate the matrix inverse. | |
KFbxXMatrix | Transpose() |
Calculate the matrix transpose. | |
Boolean Operations | |
bool | operator==(KFbxXMatrix&pXMatrix) |
Equivalence operator. | |
bool | operator==(KFbxXMatrixconst&pXMatrix) const |
Equivalence operator. | |
bool | operator!=(KFbxXMatrix&pXMatrix) |
Non-equivalence operator. | |
bool | operator!=(KFbxXMatrixconst&pXMatrix) const |
Non-equivalence operator. | |
Casting | |
operator double *() | |
Cast the matrix in a double pointer. | |
typedef const | double(kDouble44)[4][4] |
Cast the matrix in a double pointer. | |
kDouble44& | Double44() const |
Cast the matrix in a double pointer. |
KFbxXMatrix | ( | ) |
Constructor.
KFbxXMatrix | ( | constKFbxXMatrix& | pXMatrix | ) |
Copy constructor.
KFbxXMatrix | ( | KFbxVector4& | pT, | |
KFbxVector4& | pR, | |||
KFbxVector4& | pS | |||
) |
Constructor.
pT | Translation vector. | |
pR | Euler rotation vector. | |
pS | Scale vector. |
~KFbxXMatrix | ( | ) |
Destructor.
double Get | ( | int | pY, | |
int | pX | |||
) | const |
Retrieve matrix element.
pY | Row index. | |
pX | Column index. |
KFbxVector4GetT | ( | ) |
Extract translation vector.
KFbxVector4GetR | ( | ) |
Extract rotation vector.
KFbxQuaternionGetQ | ( | ) |
Extract quaternion vector.
KFbxVector4GetS | ( | ) |
Extract scale vector.
KFbxVector4GetRow | ( | int | pY | ) |
Extract a row vector.
pY | Row index. |
KFbxVector4GetColumn | ( | int | pX | ) |
Extract a column vector.
pX | Column index. |
void SetIdentity | ( | ) |
Set matrix to identity.
void SetT | ( | KFbxVector4& | pT | ) |
Set matrix's translation.
pT | Translation vector. |
void SetR | ( | KFbxVector4& | pR | ) |
Set matrix's Euler rotation.
pR | X, Y and Z rotation values expressed as a vector. |
void SetQ | ( | KFbxQuaternion& | pQ | ) |
Set matrix's quaternion.
pQ | The new quaternion. |
void SetS | ( | KFbxVector4& | pS | ) |
Set matrix's scale.
pS | X, Y and Z scaling factors expressed as a vector. |
void SetTRS | ( | KFbxVector4& | pT, | |
KFbxVector4& | pR, | |||
KFbxVector4& | pS | |||
) |
Set matrix.
pT | Translation vector. | |
pR | Rotation vector. | |
pS | Scale vector. |
Referenced byKFbxCharacterPose::GetOffset().
void SetTQS | ( | KFbxVector4& | pT, | |
KFbxQuaternion& | pQ, | |||
KFbxVector4& | pS | |||
) |
Set matrix.
pT | Translation vector. | |
pQ | Quaternion vector. | |
pS | Scale vector. |
KFbxXMatrix&operator= | ( | constKFbxXMatrix& | pM | ) |
Assignment operator.
KFbxXMatrixoperator* | ( | double | pValue | ) |
Multiply matrix by a scalar value.
pValue | Scalar value. |
KFbxXMatrixoperator/ | ( | double | pValue | ) |
Divide matrix by a scalar value.
pValue | Scalar value. |
KFbxXMatrix&operator*= | ( | double | pValue | ) |
Multiply matrix by a scalar value.
pValue | Scalar value. |
KFbxXMatrix&operator/= | ( | double | pValue | ) |
Divide matrix by a scalar value.
pValue | Scalar value. |
KFbxVector4MultT | ( | KFbxVector4& | pVector4 | ) |
Multiply matrix by a translation vector.
pVector4 | Translation vector. |
KFbxVector4MultR | ( | KFbxVector4& | pVector4 | ) |
Multiply matrix by an Euler rotation vector.
pVector4 | Euler Rotation vector. |
KFbxQuaternionMultQ | ( | KFbxQuaternion& | pQuaternion | ) |
Multiply matrix by a quaternion.
pQuaternion | Rotation value. |
KFbxVector4MultS | ( | KFbxVector4& | pVector4 | ) |
Multiply matrix by a scale vector.
pVector4 | Scaling vector. |
KFbxXMatrixoperator- | ( | ) |
Unary minus operator.
KFbxXMatrixoperator* | ( | KFbxXMatrix& | pXMatrix | ) |
Multiply two matrices together.
pXMatrix | A Matrix. |
KFbxXMatrix&operator*= | ( | KFbxXMatrix& | pXMatrix | ) |
Multiply two matrices together.
pXMatrix | A Matrix. |
KFbxXMatrixInverse | ( | ) |
Calculate the matrix inverse.
KFbxXMatrixTranspose | ( | ) |
Calculate the matrix transpose.
bool operator== | ( | KFbxXMatrix& | pXMatrix | ) |
Equivalence operator.
pXMatrix | The matrix to be compared tothis. |
true
if the two matrices are equal (each element is within a 1.0e-6 tolerance) andfalse
otherwise.bool operator== | ( | KFbxXMatrixconst& | pXMatrix | ) | const |
Equivalence operator.
pXMatrix | The matrix to be compared tothis. |
true
if the two matrices are equal (each element is within a 1.0e-6 tolerance) andfalse
otherwise.bool operator!= | ( | KFbxXMatrix& | pXMatrix | ) |
Non-equivalence operator.
pXMatrix | The matrix to be compared tothis. |
false
if the two matrices are equal (each element is within a 1.0e-6 tolerance) andtrue
otherwise.bool operator!= | ( | KFbxXMatrixconst& | pXMatrix | ) | const |
Non-equivalence operator.
pXMatrix | The matrix to be compared tothis. |
false
if the two matrices are equal (each element is within a 1.0e-6 tolerance) andtrue
otherwise.operator double * | ( | ) |
Cast the matrix in a double pointer.
typedef const double | ( | kDouble44 | ) |
Cast the matrix in a double pointer.
kDouble44&Double44 | ( | ) | const[inline] |
Cast the matrix in a double pointer.
Definition at line327of filekfbxxmatrix.h.