#include <Quaternion.h>
Public Member Functions | |
OPAL_DECL | Quaternion () |
OPAL_DECL | Quaternion (real ww, real xx, real yy, real zz) |
OPAL_DECL | Quaternion (const Quaternion &src) |
OPAL_DECL void OPAL_CALL | set (real ww, real xx, real yy, real zz) |
OPAL_DECL real OPAL_CALL | lengthSquared () const |
OPAL_DECL real OPAL_CALL | length () const |
OPAL_DECL void OPAL_CALL | normalize () |
OPAL_DECL void OPAL_CALL | getAngleAxis (real &angle, Vec3r &axis) const |
OPAL_DECL real OPAL_CALL | getRoll () const |
OPAL_DECL real OPAL_CALL | getPitch () const |
OPAL_DECL real OPAL_CALL | getYaw () const |
OPAL_DECL real &OPAL_CALL | operator[] (unsigned int i) |
OPAL_DECL const real &OPAL_CALL | operator[] (unsigned int i) const |
Public Attributes | |
real | w |
real | x |
real | y |
real | z |
Definition at line 42 of file Quaternion.h.
|
Definition at line 40 of file Quaternion.cpp. |
|
Definition at line 48 of file Quaternion.cpp. |
|
Definition at line 56 of file Quaternion.cpp. |
|
Returns the equivalent rotation.
Definition at line 92 of file Quaternion.cpp. References opal::defaults::sensor::incline::axis, opal::radToDeg(), w, opal::Vec3r::x, x, opal::Vec3r::y, y, opal::Vec3r::z, and z. Referenced by opal::Matrix44r::setQuaternion(). |
|
Definition at line 123 of file Quaternion.cpp. References opal::radToDeg(), w, x, y, and z. |
|
Definition at line 116 of file Quaternion.cpp. References opal::radToDeg(), w, x, y, and z. |
|
Definition at line 128 of file Quaternion.cpp. References opal::radToDeg(), w, x, y, and z. |
|
Definition at line 77 of file Quaternion.cpp. References lengthSquared(). Referenced by normalize(). |
|
Definition at line 72 of file Quaternion.cpp. Referenced by length(). |
|
Length will be one.
Definition at line 82 of file Quaternion.cpp. References length(). |
|
Definition at line 148 of file Quaternion.cpp. |
|
Definition at line 135 of file Quaternion.cpp. |
|
Definition at line 64 of file Quaternion.cpp. |
|
Definition at line 45 of file Quaternion.h. Referenced by getAngleAxis(), getPitch(), getRoll(), getYaw(), lengthSquared(), opal::operator *(), opal::operator!=(), opal::operator+(), opal::operator-(), opal::operator<<(), opal::operator==(), operator[](), Quaternion(), and set(). |
|
Definition at line 46 of file Quaternion.h. Referenced by getAngleAxis(), getPitch(), getRoll(), getYaw(), lengthSquared(), opal::operator *(), opal::operator!=(), opal::operator+(), opal::operator-(), opal::operator<<(), opal::operator==(), operator[](), Quaternion(), and set(). |
|
Definition at line 47 of file Quaternion.h. Referenced by getAngleAxis(), getPitch(), getRoll(), getYaw(), lengthSquared(), opal::operator *(), opal::operator!=(), opal::operator+(), opal::operator-(), opal::operator<<(), opal::operator==(), operator[](), Quaternion(), and set(). |
|
Definition at line 48 of file Quaternion.h. Referenced by getAngleAxis(), getPitch(), getRoll(), getYaw(), lengthSquared(), opal::operator *(), opal::operator!=(), opal::operator+(), opal::operator-(), opal::operator<<(), opal::operator==(), operator[](), Quaternion(), and set(). |