KFbxMatrix
#include<kfbxmatrix.h>

Inherits fbxVectorTemplate4.

List of all members.

Detailed Description

FBX SDK matrix class.

Definition at line58of filekfbxmatrix.h.


Constructors and Destructor

 KFbxMatrix()
 Constructor. Constructs an identity matrix.
 KFbxMatrix(constKFbxMatrix&pM)
 Copy constructor.
 KFbxMatrix(KFbxVector4&pT,KFbxVector4&pR,KFbxVector4&pS)
 Constructor.
 KFbxMatrix(KFbxVector4&pT,KFbxQuaternion&pQ,KFbxVector4&pS)
 Constructor.
 KFbxMatrix(constKFbxXMatrix&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=(constKFbxMatrix&pMatrix)
 Assignment operator.

Matrix Operations

KFbxMatrix operator-()
 Unary minus operator.
KFbxMatrix operator+(constKFbxMatrix&pMatrix) const
 Add two matrices together.
KFbxMatrix operator-(constKFbxMatrix&pMatrix) const
 Subtract a matrix from another matrix.
KFbxMatrix operator*(constKFbxMatrix&pMatrix) const
 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 Inverse()
 Calculate the matrix inverse.
KFbxMatrix Transpose()
 Calculate the matrix transpose.

Vector Operations

KFbxVector4 MultNormalize(constKFbxVector4&pVector) const
 Multiply this matrix by pVector, the w component is normalized to 1.

Boolean Operations

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

Casting

 operator double *()
 Cast the vector in a double pointer.
typedef const double(kDouble44)[4][4]
 Define 4*4 array as a new type.
kDouble44& Double44() const
 Cast the matrix in a referance to a 4*4 array.

Constructor&Destructor Documentation

Constructor. Constructs an identity matrix.

KFbxMatrix(constKFbxMatrixpM ) 

Copy constructor.

Parameters:
pM AnotherKFbxMatrixobject copied to this one.

Constructor.

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

Constructor.

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

KFbxMatrix(constKFbxXMatrixpM ) 

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.

KFbxVector4GetRow(int pY ) 

Extract a row vector.

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

KFbxVector4GetColumn(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(KFbxVector4pT,
KFbxVector4pR,
KFbxVector4pS 
)

Set matrix.

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

void SetTQS(KFbxVector4pT,
KFbxQuaternionpQ,
KFbxVector4pS 
)

Set matrix.

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

void SetRow(int pY,
KFbxVector4pRow 
)

Set a matrix row.

Parameters:
pY Row index.
pRow Row vector.

void SetColumn(int pX,
KFbxVector4pColumn 
)

Set a matrix column.

Parameters:
pX Column index.
pColumn Column vector.

KFbxMatrix&operator=(constKFbxMatrixpMatrix ) 

Assignment operator.

Parameters:
pMatrix Source matrix.

KFbxMatrixoperator-( ) 

Unary minus operator.

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

KFbxMatrixoperator+(constKFbxMatrixpMatrix ) const

Add two matrices together.

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

KFbxMatrixoperator-(constKFbxMatrixpMatrix ) const

Subtract a matrix from another matrix.

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

KFbxMatrixoperator*(constKFbxMatrixpMatrix ) const

Multiply two matrices.

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

KFbxMatrix&operator+=(KFbxMatrixpMatrix ) 

Add two matrices together.

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

KFbxMatrix&operator-=(KFbxMatrixpMatrix ) 

Subtract a matrix from another matrix.

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

KFbxMatrix&operator*=(KFbxMatrixpMatrix ) 

Multiply two matrices.

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

KFbxMatrixInverse( ) 

Calculate the matrix inverse.

Returns:
The inverse matrix.

KFbxMatrixTranspose( ) 

Calculate the matrix transpose.

Returns:
This matrix transposed.

KFbxVector4MultNormalize(constKFbxVector4pVector ) const

Multiply this matrix by pVector, the w component is normalized to 1.

Parameters:
pVector A vector.
Returns:
The result of this matrix * pVector.

bool operator==(KFbxMatrixpM ) 

Equivalence operator.

Parameters:
pM The matrix to be compared against this matrix.
Returns:
trueif the two matrices are equal (each element is within a 1.0e-6 tolerance),falseotherwise.

bool operator==(KFbxMatrixconst& pM ) const

Equivalence operator.

Parameters:
pM The matrix to be compared against this matrix.
Returns:
trueif the two matrices are equal (each element is within a 1.0e-6 tolerance),falseotherwise.

bool operator==(KFbxXMatrixpM ) 

Equivalence operator.

Parameters:
pM The affine matrix to be compared against this matrix.
Returns:
trueif the two matrices are equal (each element is within a 1.0e-6 tolerance),falseotherwise.

bool operator==(KFbxXMatrixconst& pM ) const

Equivalence operator.

Parameters:
pM The affine matrix to be compared against this matrix.
Returns:
trueif the two matrices are equal (each element is within a 1.0e-6 tolerance),falseotherwise.

bool operator!=(KFbxMatrixpM ) 

Non-equivalence operator.

Parameters:
pM The matrix to be compared against this matrix.
Returns:
falseif the two matrices are equal (each element is within a 1.0e-6 tolerance),trueotherwise.

bool operator!=(KFbxMatrixconst& pM ) const

Non-equivalence operator.

Parameters:
pM The matrix to be compared against this matrix.
Returns:
falseif the two matrices are equal (each element is within a 1.0e-6 tolerance),trueotherwise.

bool operator!=(KFbxXMatrixpM ) 

Non-equivalence operator.

Parameters:
pM The affine matrix to be compared against this matrix.
Returns:
falseif the two matrices are equal (each element is within a 1.0e-6 tolerance),trueotherwise.

bool operator!=(KFbxXMatrixconst& pM ) const

Non-equivalence operator.

Parameters:
pM The affine matrix to be compared against this matrix.
Returns:
falseif the two matrices are equal (each element is within a 1.0e-6 tolerance),trueotherwise.

operator double *( ) 

Cast the vector in a double pointer.

typedef const double(kDouble44  ) 

Define 4*4 array as a new type.

kDouble44&Double44( ) const[inline]

Cast the matrix in a referance to a 4*4 array.

Definition at line314of filekfbxmatrix.h.