KFbxMatrix Class Reference

#include <kfbxmatrix.h>

List of all members.


Detailed Description

FBX SDK matrix class.

Definition at line 61 of file kfbxmatrix.h.

Constructors and Destructor

 KFbxMatrix ()
 Constructor.
 KFbxMatrix (const KFbxMatrix &pM)
 Copy constructor.
 KFbxMatrix (KFbxVector4 &pT, KFbxVector4 &pR, KFbxVector4 &pS)
 Constructor.
 KFbxMatrix (KFbxVector4 &pT, KFbxQuaternion &pQ, KFbxVector4 &pS)
 Constructor.
 KFbxMatrix (const KFbxXMatrix &pM)
 Constructor.
 ~KFbxMatrix ()
 Destructor.

Access

double Get (int pY, int pX)
 Retrieve matrix element.
KFbxVector4 GetRow (int pY)
 Extract a row vector.
KFbxVector4 GetColumn (int pX)
 Extract a column vector.
void Set (int pY, int pX, double pValue)
 Set matrix element.
void SetIdentity ()
 Set matrix to identity.
void SetTRS (KFbxVector4 &pT, KFbxVector4 &pR, KFbxVector4 &pS)
 Set matrix.
void SetTQS (KFbxVector4 &pT, KFbxQuaternion &pQ, KFbxVector4 &pS)
 Set matrix.
void SetRow (int pY, KFbxVector4 &pRow)
 Set a matrix row.
void SetColumn (int pX, KFbxVector4 &pColumn)
 Set a matrix column.
KFbxMatrixoperator= (const KFbxMatrix &pMatrix)
 Assignment operator.

Matrix Operations

KFbxMatrix operator- ()
 Unary minus operator.
KFbxMatrix operator+ (KFbxMatrix &pMatrix)
 Add two matrices together.
KFbxMatrix operator- (KFbxMatrix &pMatrix)
 Subtract a matrix from another matrix.
KFbxMatrix operator * (KFbxMatrix &pMatrix)
 Multiply two matrices.
KFbxMatrixoperator+= (KFbxMatrix &pMatrix)
 Add two matrices together.
KFbxMatrixoperator-= (KFbxMatrix &pMatrix)
 Subtract a matrix from another matrix.
KFbxMatrixoperator *= (KFbxMatrix &pMatrix)
 Multiply two matrices.
KFbxMatrix Transpose ()
 Calculate the matrix transpose.

Boolean Operations

bool operator== (KFbxMatrix &pM)
 Equivalence operator.
bool operator== (KFbxXMatrix &pM)
 Equivalence operator.
bool operator!= (KFbxMatrix &pM)
 Non-equivalence operator.
bool operator!= (KFbxXMatrix &pM)
 Non-equivalence operator.

Casting

 operator double * ()
 Cast the vector in a double pointer.

Public Attributes

double mData [4][4]


Constructor & Destructor Documentation

KFbxMatrix (  ) 

Constructor.

KFbxMatrix ( const KFbxMatrix pM  ) 

Copy constructor.

KFbxMatrix ( KFbxVector4 pT,
KFbxVector4 pR,
KFbxVector4 pS 
)

Constructor.

Parameters:
pT Translation vector.
pR Euler rotation vector.
pS Scale vector.

KFbxMatrix ( KFbxVector4 pT,
KFbxQuaternion pQ,
KFbxVector4 pS 
)

Constructor.

Parameters:
pT Translation vector.
pQ Quaternion.
pS Scale vector.

KFbxMatrix ( const KFbxXMatrix pM  ) 

Constructor.

Parameters:
pM Affine matrix

~KFbxMatrix (  ) 

Destructor.


Member Function Documentation

double Get ( int  pY,
int  pX 
)

Retrieve matrix element.

Parameters:
pY Row index.
pX Column index.
Returns:
Value at element [ pX, pY ] of the matrix.

KFbxVector4 GetRow ( int  pY  ) 

Extract a row vector.

Parameters:
pY Row index.
Returns:
The row vector.

KFbxVector4 GetColumn ( int  pX  ) 

Extract a column vector.

Parameters:
pX Column index.
Returns:
The column vector.

void Set ( int  pY,
int  pX,
double  pValue 
)

Set matrix element.

Parameters:
pY Row index.
pX Column index.
pValue New component value.

void SetIdentity (  ) 

Set matrix to identity.

void SetTRS ( KFbxVector4 pT,
KFbxVector4 pR,
KFbxVector4 pS 
)

Set matrix.

Parameters:
pT Translation vector.
pR Euler rotation vector.
pS Scale vector.

void SetTQS ( KFbxVector4 pT,
KFbxQuaternion pQ,
KFbxVector4 pS 
)

Set matrix.

Parameters:
pT Translation vector.
pQ Quaternion.
pS Scale vector.

void SetRow ( int  pY,
KFbxVector4 pRow 
)

Set a matrix row.

Parameters:
pY Row index.
pRow Row vector.

void SetColumn ( int  pX,
KFbxVector4 pColumn 
)

Set a matrix column.

Parameters:
pX Column index.
pColumn Column vector.

KFbxMatrix& operator= ( const KFbxMatrix pMatrix  ) 

Assignment operator.

Parameters:
pMatrix Source matrix.

KFbxMatrix operator- (  ) 

Unary minus operator.

Returns:
A matrix where each element is multiplied by -1.

KFbxMatrix operator+ ( KFbxMatrix pMatrix  ) 

Add two matrices together.

Parameters:
pMatrix A matrix.
Returns:
The result of this matrix + pMatrix.

KFbxMatrix operator- ( KFbxMatrix pMatrix  ) 

Subtract a matrix from another matrix.

Parameters:
pMatrix A matrix.
Returns:
The result of this matrix - pMatrix.

KFbxMatrix operator * ( KFbxMatrix pMatrix  ) 

Multiply two matrices.

Parameters:
pMatrix A matrix.
Returns:
The result of this matrix * pMatrix.

KFbxMatrix& operator+= ( KFbxMatrix pMatrix  ) 

Add two matrices together.

Parameters:
pMatrix A matrix.
Returns:
The result of this matrix + pMatrix, replacing this matrix.

KFbxMatrix& operator-= ( KFbxMatrix pMatrix  ) 

Subtract a matrix from another matrix.

Parameters:
pMatrix A matrix.
Returns:
The result of this matrix - pMatrix, replacing this matrix.

KFbxMatrix& operator *= ( KFbxMatrix pMatrix  ) 

Multiply two matrices.

Parameters:
pMatrix A matrix.
Returns:
The result of this matrix * pMatrix, replacing this matrix.

KFbxMatrix Transpose (  ) 

Calculate the matrix transpose.

Returns:
This matrix transposed.

bool operator== ( KFbxMatrix pM  ) 

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 1.0e-6 tolerance), false otherwise.

bool operator== ( KFbxXMatrix pM  ) 

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 1.0e-6 tolerance), false otherwise

bool operator!= ( KFbxMatrix pM  ) 

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 1.0e-6 tolerance), true otherwise.

bool operator!= ( KFbxXMatrix pM  ) 

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 1.0e-6 tolerance), true otherwise

operator double * (  ) 

Cast the vector in a double pointer.