marble
#include <Quaternion.h>
Public Member Functions | |
Quaternion () | |
Quaternion (qreal w, qreal x, qreal y, qreal z) | |
Quaternion | exp () const |
void | getSpherical (qreal &lon, qreal &lat) const |
Quaternion | inverse () const |
qreal | length () const |
Quaternion | log () const |
void | normalize () |
Quaternion | operator* (const Quaternion &q) const |
Quaternion | operator* (qreal factor) const |
Quaternion & | operator*= (const Quaternion &q) |
Quaternion & | operator*= (qreal) |
Quaternion | operator+ (const Quaternion &q) const |
bool | operator== (const Quaternion &q) const |
qreal | pitch () const |
qreal | roll () const |
void | rotateAroundAxis (const Quaternion &q) |
void | rotateAroundAxis (const matrix &m) |
void | toMatrix (matrix &m) const |
qreal | yaw () const |
Static Public Member Functions | |
static Quaternion | fromEuler (qreal pitch, qreal yaw, qreal roll) |
static Quaternion | fromSpherical (qreal lon, qreal lat) |
static Quaternion | nlerp (const Quaternion &q1, const Quaternion &q2, qreal t) |
static Quaternion | slerp (const Quaternion &q1, const Quaternion &q2, qreal t) |
Public Attributes | |
xmmfloat | v |
Detailed Description
Definition at line 41 of file Quaternion.h.
Constructor & Destructor Documentation
Quaternion::Quaternion | ( | ) |
Definition at line 24 of file Quaternion.cpp.
Quaternion::Quaternion | ( | qreal | w, |
qreal | x, | ||
qreal | y, | ||
qreal | z | ||
) |
Definition at line 30 of file Quaternion.cpp.
Member Function Documentation
Quaternion Quaternion::exp | ( | ) | const |
Definition at line 97 of file Quaternion.cpp.
|
static |
Definition at line 105 of file Quaternion.cpp.
|
static |
used to generate Quaternion from longitude and latitude
- Parameters
-
lon longitude lat latitude
Definition at line 38 of file Quaternion.cpp.
void Quaternion::getSpherical | ( | qreal & | lon, |
qreal & | lat | ||
) | const |
Definition at line 48 of file Quaternion.cpp.
Quaternion Quaternion::inverse | ( | ) | const |
Definition at line 81 of file Quaternion.cpp.
qreal Quaternion::length | ( | ) | const |
Definition at line 69 of file Quaternion.cpp.
Quaternion Quaternion::log | ( | ) | const |
Definition at line 89 of file Quaternion.cpp.
|
static |
Definition at line 231 of file Quaternion.cpp.
void Quaternion::normalize | ( | ) |
Definition at line 64 of file Quaternion.cpp.
Quaternion Quaternion::operator* | ( | const Quaternion & | q | ) | const |
Definition at line 168 of file Quaternion.cpp.
Quaternion Quaternion::operator* | ( | qreal | factor | ) | const |
Definition at line 186 of file Quaternion.cpp.
Quaternion & Quaternion::operator*= | ( | const Quaternion & | q | ) |
Definition at line 152 of file Quaternion.cpp.
Quaternion & Quaternion::operator*= | ( | qreal | mult | ) |
Definition at line 74 of file Quaternion.cpp.
Quaternion Quaternion::operator+ | ( | const Quaternion & | q | ) | const |
Definition at line 178 of file Quaternion.cpp.
bool Quaternion::operator== | ( | const Quaternion & | q | ) | const |
Definition at line 159 of file Quaternion.cpp.
qreal Quaternion::pitch | ( | ) | const |
Definition at line 123 of file Quaternion.cpp.
qreal Quaternion::roll | ( | ) | const |
Definition at line 135 of file Quaternion.cpp.
void Quaternion::rotateAroundAxis | ( | const Quaternion & | q | ) |
Definition at line 191 of file Quaternion.cpp.
void Quaternion::rotateAroundAxis | ( | const matrix & | m | ) |
Definition at line 273 of file Quaternion.cpp.
|
static |
Definition at line 201 of file Quaternion.cpp.
void Quaternion::toMatrix | ( | matrix & | m | ) | const |
Definition at line 246 of file Quaternion.cpp.
qreal Quaternion::yaw | ( | ) | const |
Definition at line 129 of file Quaternion.cpp.
Member Data Documentation
xmmfloat Marble::Quaternion::v |
Definition at line 87 of file Quaternion.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.