Basic type: a quaternion, a complex number with a real coefficient and three imaginary coefficients, stored as a 3-vector.
More...
|
| | GfQuath () |
| | Default constructor leaves the quaternion undefined.
|
| |
| | GfQuath (GfHalf realVal) |
| | Initialize the real coefficient to realVal and the imaginary coefficients to zero.
|
| |
| | GfQuath (GfHalf real, GfHalf i, GfHalf j, GfHalf k) |
| | Initialize the real and imaginary coefficients.
|
| |
| | GfQuath (GfHalf real, const GfVec3h &imaginary) |
| | Initialize the real and imaginary coefficients.
|
| |
| GF_API | GfQuath (class GfQuatd const &other) |
| | Construct from GfQuatd.
|
| |
| GF_API | GfQuath (class GfQuatf const &other) |
| | Construct from GfQuatf.
|
| |
| GfHalf | GetReal () const |
| | Return the real coefficient.
|
| |
| void | SetReal (GfHalf real) |
| | Set the real coefficient.
|
| |
| const GfVec3h & | GetImaginary () const |
| | Return the imaginary coefficient.
|
| |
| void | SetImaginary (const GfVec3h &imaginary) |
| | Set the imaginary coefficients.
|
| |
| void | SetImaginary (GfHalf i, GfHalf j, GfHalf k) |
| | Set the imaginary coefficients.
|
| |
| GfHalf | GetLength () const |
| | Return geometric length of this quaternion.
|
| |
| GfQuath | GetNormalized (GfHalf eps=GF_MIN_VECTOR_LENGTH) const |
| | length of this quaternion is smaller than eps, return the identity quaternion.
|
| |
| GF_API GfHalf | Normalize (GfHalf eps=GF_MIN_VECTOR_LENGTH) |
| | Normalizes this quaternion in place to unit length, returning the length before normalization.
|
| |
| GfQuath | GetConjugate () const |
| | Return this quaternion's conjugate, which is the quaternion with the same real coefficient and negated imaginary coefficients.
|
| |
| GfQuath | GetInverse () const |
| | Return this quaternion's inverse, or reciprocal.
|
| |
| GF_API GfVec3h | Transform (const GfVec3h &point) const |
| | Transform the GfVec3h point.
|
| |
| GfQuath | operator- () const |
| | Component-wise negation.
|
| |
| bool | operator== (const GfQuath &q) const |
| | Component-wise quaternion equality test.
|
| |
| bool | operator!= (const GfQuath &q) const |
| | Component-wise quaternion inequality test.
|
| |
| GF_API GfQuath & | operator*= (const GfQuath &q) |
| | Post-multiply quaternion q into this quaternion.
|
| |
| GfQuath & | operator*= (GfHalf s) |
| | Multiply this quaternion's coefficients by s.
|
| |
| GfQuath & | operator/= (GfHalf s) |
| | Divide this quaternion's coefficients by s.
|
| |
| GfQuath & | operator+= (const GfQuath &q) |
| | Add quaternion q to this quaternion.
|
| |
| GfQuath & | operator-= (const GfQuath &q) |
| | Component-wise unary difference operator.
|
| |
Basic type: a quaternion, a complex number with a real coefficient and three imaginary coefficients, stored as a 3-vector.
Definition at line 43 of file quath.h.
Initialize the real coefficient to realVal and the imaginary coefficients to zero.
Since quaternions typically must be normalized, reasonable values for realVal are -1, 0, or 1. Other values are legal but are likely to be meaningless.
Definition at line 59 of file quath.h.