FbxDualQuaternion Class Reference
#include <fbxdualquaternion.h>
FBX SDK dual quaternion class to represent rigid transformation, which is combined by two quaternions.
A transformation is said to be rigid if it preserves relative distances and angles. That means rotation and translation.
Definition at line 27 of file fbxdualquaternion.h.
|
Dual quaternion has three types of conjugate.
|
void | Conjugate () |
| Conjugate both quaternions of this dual quaternion. More...
|
|
void | Dual () |
| Conjugate in dual space. More...
|
|
void | DualConjugate () |
| Conjugate both quaternions of this dual quaternion in dual space. More...
|
|
Copy constructor.
- Parameters
-
Constructor.
- Parameters
-
pRotation | The rotation the dual quaternion is going to represent. |
pTranslation | The translation the dual quaternion is going to represent. |
FbxDualQuaternion |
( |
double |
pX1, |
|
|
double |
pY1, |
|
|
double |
pZ1, |
|
|
double |
pW1, |
|
|
double |
pX2, |
|
|
double |
pY2, |
|
|
double |
pZ2, |
|
|
double |
pW2 |
|
) |
| |
Constructor.
- Parameters
-
pX1 | The X component of the first quaternion. |
pY1 | The Y component of the first quaternion. |
pZ1 | The Z component of the first quaternion. |
pW1 | The W component of the first quaternion. |
pX2 | The X component of the second quaternion. |
pY2 | The Y component of the second quaternion. |
pZ2 | The Z component of the second quaternion. |
pW2 | The W component of the second quaternion. |
Assignment operation.
- Parameters
-
void Set |
( |
double |
pX1, |
|
|
double |
pY1, |
|
|
double |
pZ1, |
|
|
double |
pW1, |
|
|
double |
pX2, |
|
|
double |
pY2, |
|
|
double |
pZ2, |
|
|
double |
pW2 |
|
) |
| |
Set vector.
- Parameters
-
pX1 | The X component of the first quaternion. |
pY1 | The Y component of the first quaternion. |
pZ1 | The Z component of the first quaternion. |
pW1 | The W component of the first quaternion. |
pX2 | The X component of the second quaternion. |
pY2 | The Y component of the second quaternion. |
pZ2 | The Z component of the second quaternion. |
pW2 | The W component of the second quaternion. |
Get the first quaternion of the dual quaternion.
- Returns
- The first quaternion of the dual quaternion.
Get the second quaternion of the dual quaternion.
- Returns
- The second quaternion of the dual quaternion.
Get the first quaternion of the dual quaternion.
- Returns
- The first quaternion of the dual quaternion.
Get the second quaternion of the dual quaternion.
- Returns
- The second quaternion of the dual quaternion.
Get the rotation part from the dual quaternion.
- Returns
- FbxQuaternion object to represent rotation.
Get the translation part from the dual quaternion.
- Returns
- FbxVector4 object to represent translation.
Add a value to all vector components.
- Parameters
-
pValue | The value to add to each component of the vector. |
- Returns
- New vector.
Subtract a value from all vector components.
- Parameters
-
pValue | The value to subtract from each component of the vector. |
- Returns
- New vector.
Multiply all vector components by a value.
- Parameters
-
pValue | The value multiplying each component of the vector. |
- Returns
- New vector.
Divide all vector components by a value.
- Parameters
-
pValue | The value dividing each component of the vector. |
- Returns
- New vector.
Add a value to all vector components.
- Parameters
-
pValue | The value to add to each component of the vector. |
- Returns
- The result of adding pValue to each component of the vector, replacing this dual quaternion.
Subtract a value from all vector components.
- Parameters
-
pValue | The value to subtract from each component of the vector. |
- Returns
- The result of subtracting pValue from each component of the vector, replacing this dual quaternion.
Multiply a value to all vector elements.
- Parameters
-
pValue | The value multiplying each component of the vector. |
- Returns
- The result of multiplying each component of the vector by pValue, replacing this dual quaternion.
Divide all vector elements by a value.
- Parameters
-
pValue | The value dividing each component of the vector. |
- Returns
- The result of dividing each component of the vector by pValue, replacing this dual quaternion.
Unary minus operator.
- Returns
- A dual quaternion where each component is multiplied by -1.
Add two vectors together.
- Parameters
-
pDualQuaternion | Dual quaternion to add. |
- Returns
- The dual quaternion v' = this + pDualQuaternion.
Subtract a quaternion from another quaternion.
- Parameters
-
pDualQuaternion | Dual quaternion to subtract. |
- Returns
- The dual quaternion v' = this - pDualQuaternion.
Memberwise multiplication of two vectors.
- Parameters
-
pDualQuaternion | Multiplying dual quaternion. |
- Returns
- The dual quaternion v' = this * pQuaternion.
Memberwise division of a dual quaternion with another dual quaternion.
- Parameters
-
pDualQuaternion | Dividing dual quaternion. |
- Returns
- The dual quaternion v' = this / pQuaternion.
Add two quaternions together.
- Parameters
-
pDualQuaternion | Dual quaternion to add. |
- Returns
- The dual quaternion v' = this + pQuaternion, replacing this dual quaternion.
Subtract a dual quaternion from another vector.
- Parameters
-
pDualQuaternion | Dual quaternion to subtract. |
- Returns
- The dual quaternion v' = this - pQuaternion, replacing this dual quaternion.
Memberwise multiplication of two quaternions.
- Parameters
-
pDualQuaternion | Multiplying dual quaternion. |
- Returns
- The dual quaternion v' = this * pQuaternion, replacing this dual quaternion.
Memberwise division of a dual quaternion by another dual quaternion.
- Parameters
-
pDualQuaternion | Dividing dual quaternion. |
- Returns
- The dual quaternion v' = this / pQuaternion, replacing this dual quaternion.
Multiplication of a dual quaternion by a FbxVector4.
- Parameters
-
- Returns
- The dual quaternion v' = FbxDualQuaternion(mQ1, (mQ1 * pVector) + mQ2).
Return dual quaternion product.
- Parameters
-
pDualQuaternion | Product dual quaternion. |
- Returns
- The dual quaternion that is the product of this and pDualQuaternion.
Normalize the dual quaternion, length set to 1.
Calculate the dual quaternion's inverse.
- Returns
- The inverse of this dual quaternion.
Deform a point by this dual quaternion.
- Returns
- The inverse of this quaternion.
Conjugate both quaternions of this dual quaternion.
Conjugate both quaternions of this dual quaternion in dual space.
Equivalence operator.
- Parameters
-
pV | The quaternion to be compared to this quaternion. |
- Returns
true
if the two quaternions are equal (each element is within a FBXSDK_TOLERANCE tolerance), false
otherwise.
Non equivalence operator.
- Parameters
-
pV | The quaternion to be compared to this. |
- Returns
false
if the two quaternions are equal (each element is within a FBXSDK_TOLERANCE tolerance), true
otherwise.
The documentation for this class was generated from the following file: