ESyS-Particle
4.0.1
|
Public Types | |
typedef std::pair< double, Vec3 > | AngleAxisPair |
Public Member Functions | |
QUATERNION_INLINE | Quaternion (double, const Vec3 &) |
QUATERNION_INLINE | Quaternion (const Quaternion &) |
QUATERNION_INLINE Quaternion & | operator= (const Quaternion &) |
QUATERNION_INLINE std::ostream & | output (std::ostream &) const |
QUATERNION_INLINE std::istream & | input (std::istream &ci) |
QUATERNION_INLINE bool | operator== (const Quaternion &) const |
QUATERNION_INLINE bool | operator!= (const Quaternion &) const |
QUATERNION_INLINE Quaternion | operator+ (const Quaternion &) const |
QUATERNION_INLINE Quaternion | operator- (const Quaternion &) const |
QUATERNION_INLINE Quaternion | operator- () const |
QUATERNION_INLINE Quaternion | operator* (double) const |
QUATERNION_INLINE Quaternion | operator* (const Quaternion &) const |
QUATERNION_INLINE Quaternion | operator/ (const Quaternion &) const |
QUATERNION_INLINE Quaternion & | operator+= (const Quaternion &) |
QUATERNION_INLINE Quaternion & | operator-= (const Quaternion &) |
QUATERNION_INLINE Quaternion & | operator*= (double) |
QUATERNION_INLINE Quaternion & | operator*= (const Quaternion &) |
QUATERNION_INLINE Quaternion & | operator/= (const Quaternion &) |
QUATERNION_INLINE Quaternion | inverse () const |
QUATERNION_INLINE void | normalize () |
QUATERNION_INLINE double | length () const |
QUATERNION_INLINE Matrix3 | to_matrix () const |
QUATERNION_INLINE Vec3 | return_vec () const |
QUATERNION_INLINE double | return_sca () const |
QUATERNION_INLINE void | set_vector (const Vec3 &v) |
QUATERNION_INLINE void | set_scalar (double d) |
QUATERNION_INLINE Vec3 | asAngleAxis () const |
QUATERNION_INLINE AngleAxisPair | asAngleAxisPair () const |
Friends | |
QUATERNION_INLINE friend Quaternion | operator* (double, const Quaternion &) |
typedef std::pair<double,Vec3> Quaternion::AngleAxisPair |
Pair representing angle of rotation about an axis.
QUATERNION_INLINE Vec3 Quaternion::asAngleAxis | ( | ) | const |
Returns the angle and axis of rotation associated with this quaternion as 3x1 vector. The magnitude of the vector is the angle of rotation in radians.
QUATERNION_INLINE Quaternion::AngleAxisPair Quaternion::asAngleAxisPair | ( | ) | const |
Returns the angle and axis of rotation associated with this quaternion as std::pair<radians,3x1 vector>. Axis has non-unit magnitude.