|
HDK
|
#include <quath.h>
Public Types | |
| typedef GfHalf | ScalarType |
| typedef GfVec3h | ImaginaryType |
Public Member Functions | |
| GfQuath () | |
| Default constructor leaves the quaternion undefined. More... | |
| GfQuath (GfHalf realVal) | |
| GfQuath (GfHalf real, GfHalf i, GfHalf j, GfHalf k) | |
| Initialize the real and imaginary coefficients. More... | |
| GfQuath (GfHalf real, const GfVec3h &imaginary) | |
| Initialize the real and imaginary coefficients. More... | |
| GF_API | GfQuath (class GfQuatd const &other) |
| Construct from GfQuatd. More... | |
| GF_API | GfQuath (class GfQuatf const &other) |
| Construct from GfQuatf. More... | |
| GfHalf | GetReal () const |
| Return the real coefficient. More... | |
| void | SetReal (GfHalf real) |
| Set the real coefficient. More... | |
| const GfVec3h & | GetImaginary () const |
| Return the imaginary coefficient. More... | |
| void | SetImaginary (const GfVec3h &imaginary) |
| Set the imaginary coefficients. More... | |
| void | SetImaginary (GfHalf i, GfHalf j, GfHalf k) |
| Set the imaginary coefficients. More... | |
| GfHalf | GetLength () const |
| Return geometric length of this quaternion. More... | |
| GfQuath | GetNormalized (GfHalf eps=GF_MIN_VECTOR_LENGTH) const |
| GF_API GfHalf | Normalize (GfHalf eps=GF_MIN_VECTOR_LENGTH) |
| GfQuath | GetConjugate () const |
| GfQuath | GetInverse () const |
| GF_API GfVec3h | Transform (const GfVec3h &point) const |
| GfQuath | operator- () const |
| Component-wise negation. More... | |
| bool | operator== (const GfQuath &q) const |
| bool | operator!= (const GfQuath &q) const |
| GF_API GfQuath & | operator*= (const GfQuath &q) |
Post-multiply quaternion q into this quaternion. More... | |
| GfQuath & | operator*= (GfHalf s) |
Multiply this quaternion's coefficients by s. More... | |
| GfQuath & | operator/= (GfHalf s) |
Divide this quaternion's coefficients by s. More... | |
| GfQuath & | operator+= (const GfQuath &q) |
Add quaternion q to this quaternion. More... | |
| GfQuath & | operator-= (const GfQuath &q) |
| Component-wise unary difference operator. More... | |
Static Public Member Functions | |
| static GfQuath | GetZero () |
| static GfQuath | GetIdentity () |
Friends | |
| size_t | hash_value (const GfQuath &q) |
| Hash. More... | |
| GfQuath | operator+ (const GfQuath &q1, const GfQuath &q2) |
| Component-wise binary sum operator. More... | |
| GfQuath | operator- (const GfQuath &q1, const GfQuath &q2) |
| Component-wise binary difference operator. More... | |
| GfQuath | operator* (const GfQuath &q1, const GfQuath &q2) |
Returns the product of quaternions q1 and q2. More... | |
| GfQuath | operator* (const GfQuath &q, GfHalf s) |
Returns the product of quaternion q and scalar s. More... | |
| GfQuath | operator* (GfHalf s, const GfQuath &q) |
Returns the product of quaternion q and scalar s. More... | |
| GfQuath | operator/ (const GfQuath &q, GfHalf s) |
Returns the product of quaternion q and scalar 1 / s. More... | |
Basic type: a quaternion, a complex number with a real coefficient and three imaginary coefficients, stored as a 3-vector.
| typedef GfVec3h GfQuath::ImaginaryType |
| typedef GfHalf GfQuath::ScalarType |
|
inline |
|
inlineexplicit |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
| GF_API GfHalf GfQuath::Normalize | ( | GfHalf | eps = GF_MIN_VECTOR_LENGTH | ) |
Normalizes this quaternion in place to unit length, returning the length before normalization. If the length of this quaternion is smaller than eps, this sets the quaternion to identity.
|
inline |
Post-multiply quaternion q into this quaternion.
|
inline |
|
inline |