|
| Quaternion () |
| Initializes the quaternion to the identity rotation.
|
|
| Quaternion (T x_in, T y_in, T z_in, T w_in) |
| Initializes the quaternion from the passed-in values.
|
|
| Quaternion (const Vector3< T > &v_in, T w_in) |
| Initializes the quaternion from vector and scalar components. More...
|
|
template<typename T2 > |
Quaternion< T2 > | cast () |
| Convert to a vector with a different base type.
|
|
Quaternion< T > | conjugate () const |
| Computes and returns the quaternion conjugate. More...
|
|
Vector3< T > | rotate (const Vector3< T > &v) const |
| Rotates the passed-in vector by the rotation represented by this quaternion.
|
|
void | normalize () |
| Normalizes this quaternion.
|
|
Quaternion< T > | normalized () const |
| Returns a normalized version of this quaternion.
|
|
bool | operator== (const Quaternion< T > &rhs) const |
| Tests for equality (no floating point slop).
|
|
bool | operator!= (const Quaternion< T > &rhs) const |
| Tests for inequality (no floating point slop).
|
|
template<typename T>
class HandTrackingClient::Quaternion< T >
A minimal quaternion class.
We have provided this simple Quaternion class to avoid a dependence on an external math library (like Eigen).