|
| static Quaternion | lerp (const Quaternion &q0, const Quaternion &q1, T t) |
| | given t in [0,1], interpolates linearly two quaternions giving in general not-unit quaternion
|
| |
| static Quaternion | slerp (Quaternion q0, Quaternion q1, T t) |
| | given t in [0,1] and two unit quaternions, interpolates them spherically and produces another unit quaternion
|
| |
| static Matrix3< T > | slerp (const Matrix3< T > &m0, const Matrix3< T > &m1, T t) |
| | given t in [0,1] and two rotation matrices, interpolates them spherically and produces another rotation matrix
|
| |
| static AffineXf3< T > | slerp (const AffineXf3< T > &xf0, const AffineXf3< T > &xf1, T t, const Vector3< T > &p={}) |
| |
|
(Note that these are not member symbols.)
|
|
| template<typename T > |
| T | dot (const Quaternion< T > &a, const Quaternion< T > &b) |
| | dot product
|
| |
| template<typename T > |
| Quaternion< T > | operator* (const Quaternion< T > &q1, const Quaternion< T > &q2) |
| | Hamilton product.
|
| |
| template<typename T > |
| const Quaternion< T > * | getCanonicalQuaternions () noexcept |
| |
| template<typename T > |
| Quaternion< T > | getClosestCanonicalQuaternion (const Quaternion< T > &base) noexcept |
| | returns closest to base canonical quaternion
|
| |
| template<typename T > |
| Matrix3< T > | slerp (const Matrix3< T > &m0, const Matrix3< T > &m1, T t) |
| | given t in [0,1] and two rotation matrices, interpolates them spherically and produces another rotation matrix
|
| |
| template<typename T > |
| AffineXf3< T > | slerp (const AffineXf3< T > &xf0, const AffineXf3< T > &xf1, T t, const Vector3< T > &p={}) |
| |
| template<typename T > |
| Matrix3< T > | orthonormalized (const Matrix3< T > &m) |
| | given any matrix, returns a close rotation matrix
|
| |
| template<typename T > |
| AffineXf3< T > | orthonormalized (const AffineXf3< T > &xf, const Vector3< T > ¢er={}) |
| |
template<typename T>
struct MR::Quaternion< T >
Represents a quaternion following the notations from https:/// en.wikipedia.org/wiki/Quaternion