|
SPH
|
Quaternion representing an axis of rotation and a (half of) rotation angle. More...
#include <Quat.h>
Public Member Functions | |
| Quat ()=default | |
| Quat (const Vector &axis, const Float angle) | |
| Creates a quaternion given rotation axis and angle of rotation. More... | |
| Quat (const AffineMatrix &m) | |
| Creates a quaternion given a rotation matrix. More... | |
| INLINE Vector | axis () const |
| Returns the normalized rotational axis. More... | |
| INLINE Float | angle () const |
| Returns the angle of rotation (in radians). More... | |
| INLINE Float & | operator[] (const Size idx) |
| INLINE Float | operator[] (const Size idx) const |
| AffineMatrix | convert () const |
| Converts the quaternion into a rotation matrix. More... | |
Quaternion representing an axis of rotation and a (half of) rotation angle.
Convenient holder of any rotation, as it contains only 4 components and can only represent a rotation, compared to matrix with 9 components, representing any linear transformation.
|
default |
|
inlineexplicit |
|
inline |