|
HDK
|
#include <quatf.h>
Public Types | |
| typedef float | ScalarType |
| typedef GfVec3f | ImaginaryType |
Public Member Functions | |
| GfQuatf () | |
| Default constructor leaves the quaternion undefined. More... | |
| GfQuatf (float realVal) | |
| GfQuatf (float real, float i, float j, float k) | |
| Initialize the real and imaginary coefficients. More... | |
| GfQuatf (float real, const GfVec3f &imaginary) | |
| Initialize the real and imaginary coefficients. More... | |
| GF_API | GfQuatf (class GfQuatd const &other) |
| Construct from GfQuatd. More... | |
| GF_API | GfQuatf (class GfQuath const &other) |
| Implicitly convert from GfQuath. More... | |
| float | GetReal () const |
| Return the real coefficient. More... | |
| void | SetReal (float real) |
| Set the real coefficient. More... | |
| const GfVec3f & | GetImaginary () const |
| Return the imaginary coefficient. More... | |
| void | SetImaginary (const GfVec3f &imaginary) |
| Set the imaginary coefficients. More... | |
| void | SetImaginary (float i, float j, float k) |
| Set the imaginary coefficients. More... | |
| float | GetLength () const |
| Return geometric length of this quaternion. More... | |
| GfQuatf | GetNormalized (float eps=GF_MIN_VECTOR_LENGTH) const |
| GF_API float | Normalize (float eps=GF_MIN_VECTOR_LENGTH) |
| GfQuatf | GetConjugate () const |
| GfQuatf | GetInverse () const |
| GF_API GfVec3f | Transform (const GfVec3f &point) const |
| GfQuatf | operator- () const |
| Component-wise negation. More... | |
| bool | operator== (const GfQuatf &q) const |
| bool | operator!= (const GfQuatf &q) const |
| GF_API GfQuatf & | operator*= (const GfQuatf &q) |
Post-multiply quaternion q into this quaternion. More... | |
| GfQuatf & | operator*= (float s) |
Multiply this quaternion's coefficients by s. More... | |
| GfQuatf & | operator/= (float s) |
Divide this quaternion's coefficients by s. More... | |
| GfQuatf & | operator+= (const GfQuatf &q) |
Add quaternion q to this quaternion. More... | |
| GfQuatf & | operator-= (const GfQuatf &q) |
| Component-wise unary difference operator. More... | |
Static Public Member Functions | |
| static GfQuatf | GetZero () |
| static GfQuatf | GetIdentity () |
Friends | |
| size_t | hash_value (const GfQuatf &q) |
| Hash. More... | |
| GfQuatf | operator+ (const GfQuatf &q1, const GfQuatf &q2) |
| Component-wise binary sum operator. More... | |
| GfQuatf | operator- (const GfQuatf &q1, const GfQuatf &q2) |
| Component-wise binary difference operator. More... | |
| GfQuatf | operator* (const GfQuatf &q1, const GfQuatf &q2) |
Returns the product of quaternions q1 and q2. More... | |
| GfQuatf | operator* (const GfQuatf &q, float s) |
Returns the product of quaternion q and scalar s. More... | |
| GfQuatf | operator* (float s, const GfQuatf &q) |
Returns the product of quaternion q and scalar s. More... | |
| GfQuatf | operator/ (const GfQuatf &q, float 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 GfVec3f GfQuatf::ImaginaryType |
| typedef float GfQuatf::ScalarType |
|
inline |
|
inlineexplicit |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
| GF_API float GfQuatf::Normalize | ( | float | 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 |