#include<kfbxquaternion.h>
Inherits fbxVectorTemplate4<double>.
Definition at line54of filekfbxquaternion.h.
Constructors and Destructor | |
KFbxQuaternion() | |
Constructor. | |
KFbxQuaternion(constKFbxQuaternion&pV) | |
Copy constructor. | |
KFbxQuaternion(double pX, double pY, double pZ, double pW=1.0) | |
Constructor. | |
~KFbxQuaternion() | |
Destructor. | |
Access | |
KFbxQuaternion& | operator=(constKFbxQuaternion&pQuaternion) |
Assignment operation. | |
double& | operator[](int pIndex) |
Accessor. | |
double | GetAt(int pIndex) |
Get a vector element. | |
void | SetAt(int pIndex, double pValue) |
Set a vector element. | |
void | Set(double pX, double pY, double pZ, double pW=1.0) |
Set vector. | |
Scalar Operations | |
KFbxQuaternion | operator+(double pValue) |
Add a value to all vector components. | |
KFbxQuaternion | operator-(double pValue) |
Subtract a value from all vector components. | |
KFbxQuaternion | operator*(double pValue) |
Multiply all vector components by a value. | |
KFbxQuaternion | operator/(double pValue) |
Divide all vector components by a value. | |
KFbxQuaternion& | operator+=(double pValue) |
Add a value to all vector components. | |
KFbxQuaternion& | operator-=(double pValue) |
Subtract a value from all vector components. | |
KFbxQuaternion& | operator*=(double pValue) |
Multiply a value to all vector elements. | |
KFbxQuaternion& | operator/=(double pValue) |
Divide all vector elements by a value. | |
Vector Operations | |
KFbxQuaternion | operator-() |
Unary minus operator. | |
KFbxQuaternion | operator+(KFbxQuaternion&pQuaternion) |
Add two vectors together. | |
KFbxQuaternion | operator-(KFbxQuaternion&pQuaternion) |
Subtract a quaternion from another quaternion. | |
KFbxQuaternion | operator*(KFbxQuaternion&pQuaternion) |
Memberwise multiplication of two vectors. | |
KFbxQuaternion | operator/(KFbxQuaternion&pQuaternion) |
Memberwise division of a quaternion with another quaternion. | |
KFbxQuaternion& | operator+=(KFbxQuaternion&pQuaternion) |
Add two quaternions together. | |
KFbxQuaternion& | operator-=(KFbxQuaternion&pQuaternion) |
Subtract a quaternion from another vector. | |
KFbxQuaternion& | operator*=(KFbxQuaternion&pQuaternion) |
Memberwise multiplication of two quaternions. | |
KFbxQuaternion& | operator/=(KFbxQuaternion&pQuaternion) |
Memberwise division of a quaternion by another quaternion. | |
KFbxQuaternion | Product(constKFbxQuaternion&pQuaternion) |
Return quaternion product. | |
void | Normalize() |
Normalize the quaternion, length set to 1. | |
void | Conjugate() |
Calculate the quaternion inverse. | |
void | ComposeSphericalXYZ(KFbxVector4pEuler) |
Creates a Quaternion equivalent to the supplied Euler XYZ in spherical coordinate. | |
KFbxVector4 | DecomposeSphericalXYZ() |
Creates an Euler XYZ equivalent to the current quaternion. | |
Boolean Operations | |
bool | operator==(KFbxQuaternion&pV) |
Equivalence operator. | |
bool | operator==(KFbxQuaternionconst&pV) const |
Equivalence operator. | |
bool | operator!=(KFbxQuaternion&pV) |
Non equivalence operator. | |
bool | operator!=(KFbxQuaternionconst&pV) const |
Equivalence operator. | |
Casting | |
operator double *() | |
Cast the vector in a double pointer. |
Constructor.
KFbxQuaternion | ( | constKFbxQuaternion& | pV | ) |
Copy constructor.
pV | KFbxQuaternionobject copied to this one. |
KFbxQuaternion | ( | double | pX, | |
double | pY, | |||
double | pZ, | |||
double | pW=1.0 | |||
) |
Constructor.
pX | The X component. | |
pY | The Y component. | |
pZ | The Z component. | |
pW | The W component. |
~KFbxQuaternion | ( | ) |
Destructor.
KFbxQuaternion&operator= | ( | constKFbxQuaternion& | pQuaternion | ) |
Assignment operation.
pQuaternion | KFbxQuaternionobject assigned to this one. |
double&operator[] | ( | int | pIndex | ) |
Accessor.
pIndex | The index of the component to access. |
double GetAt | ( | int | pIndex | ) |
Get a vector element.
pIndex | The index of the component to access. |
void SetAt | ( | int | pIndex, | |
double | pValue | |||
) |
Set a vector element.
pIndex | The index of the component to set. | |
pValue | The new value to set the component. |
void Set | ( | double | pX, | |
double | pY, | |||
double | pZ, | |||
double | pW=1.0 | |||
) |
Set vector.
pX | The X component value. | |
pY | The Y component value. | |
pZ | The Z component value. | |
pW | The W component value. |
KFbxQuaternionoperator+ | ( | double | pValue | ) |
Add a value to all vector components.
pValue | The value to add to each component of the vector. |
KFbxQuaternionoperator- | ( | double | pValue | ) |
Subtract a value from all vector components.
pValue | The value to subtract from each component of the vector. |
KFbxQuaternionoperator* | ( | double | pValue | ) |
Multiply all vector components by a value.
pValue | The value multiplying each component of the vector. |
KFbxQuaternionoperator/ | ( | double | pValue | ) |
Divide all vector components by a value.
pValue | The value dividing each component of the vector. |
KFbxQuaternion&operator+= | ( | double | pValue | ) |
Add a value to all vector components.
pValue | The value to add to each component of the vector. |
KFbxQuaternion&operator-= | ( | double | pValue | ) |
Subtract a value from all vector components.
pValue | The value to subtract from each component of the vector. |
KFbxQuaternion&operator*= | ( | double | pValue | ) |
Multiply a value to all vector elements.
pValue | The value multiplying each component of the vector. |
KFbxQuaternion&operator/= | ( | double | pValue | ) |
Divide all vector elements by a value.
pValue | The value dividing each component of the vector. |
KFbxQuaternionoperator- | ( | ) |
Unary minus operator.
KFbxQuaternionoperator+ | ( | KFbxQuaternion& | pQuaternion | ) |
Add two vectors together.
pQuaternion | Quaternion to add. |
KFbxQuaternionoperator- | ( | KFbxQuaternion& | pQuaternion | ) |
Subtract a quaternion from another quaternion.
pQuaternion | Quaternion to subtract. |
KFbxQuaternionoperator* | ( | KFbxQuaternion& | pQuaternion | ) |
Memberwise multiplication of two vectors.
pQuaternion | Multiplying quaternion. |
KFbxQuaternionoperator/ | ( | KFbxQuaternion& | pQuaternion | ) |
Memberwise division of a quaternion with another quaternion.
pQuaternion | Dividing quaternion. |
KFbxQuaternion&operator+= | ( | KFbxQuaternion& | pQuaternion | ) |
Add two quaternions together.
pQuaternion | Quaternion to add. |
KFbxQuaternion&operator-= | ( | KFbxQuaternion& | pQuaternion | ) |
Subtract a quaternion from another vector.
pQuaternion | Quaternion to subtract. |
KFbxQuaternion&operator*= | ( | KFbxQuaternion& | pQuaternion | ) |
Memberwise multiplication of two quaternions.
pQuaternion | Multiplying quaternion. |
KFbxQuaternion&operator/= | ( | KFbxQuaternion& | pQuaternion | ) |
Memberwise division of a quaternion by another quaternion.
pQuaternion | Dividing quaternion. |
KFbxQuaternionProduct | ( | constKFbxQuaternion& | pQuaternion | ) |
Return quaternion product.
pQuaternion | product quaternion. |
void Normalize | ( | ) |
Normalize the quaternion, length set to 1.
void Conjugate | ( | ) |
Calculate the quaternion inverse.
void ComposeSphericalXYZ | ( | KFbxVector4 | pEuler | ) |
Creates a Quaternion equivalent to the supplied Euler XYZ in spherical coordinate.
pEuler | The Euler XYZ angle. |
KFbxVector4DecomposeSphericalXYZ | ( | ) |
Creates an Euler XYZ equivalent to the current quaternion.
bool operator== | ( | KFbxQuaternion& | pV | ) |
Equivalence operator.
pV | The quaternion to be compared to this quarternion. |
true
if the two quaternions are equal (each element is within a 1.0e-6 tolerance),false
otherwise.bool operator== | ( | KFbxQuaternionconst& | pV | ) | const |
Equivalence operator.
pV | The quaternion to be compared to this quarternion. |
true
if the two quaternions are equal (each element is within a 1.0e-6 tolerance),false
otherwise.bool operator!= | ( | KFbxQuaternion& | pV | ) |
Non equivalence operator.
pV | The quaternion to be compared tothis. |
false
if the two quaternions are equal (each element is within a 1.0e-6 tolerance),true
otherwise.bool operator!= | ( | KFbxQuaternionconst& | pV | ) | const |
Equivalence operator.
pV | The quaternion to be compared to this quarternion. |
true
if the two quaternions are equal (each element is within a 1.0e-6 tolerance),false
otherwise.operator double * | ( | ) |
Cast the vector in a double pointer.