![]() |
VR-Link API Documentation for HLA Evolved
|
Quaternions are used to represent orientation of an object. More...
Collaboration diagram for DtQuaternion:Public Member Functions | |
| DtQuaternion () | |
| create an empty quaternion (w = x = y = z = 0) | |
| DtQuaternion (double w, double x, double y, double z) | |
| create an initialized quaternion | |
| DtQuaternion (const DtQuaternion &other) | |
| copy ctor | |
| DtQuaternion (const DtTaitBryan &tb) | |
| Converts TaitBryan class to a Quaternion. | |
| DtQuaternion & | operator= (const DtQuaternion &other) |
| Assignment operator. | |
| DtString | string () const |
| Returns a DtString representation of this object. | |
| void | printDataToStream (std::ostream &str) const |
| double | w () const |
| void | setW (double w) |
| double | x () const |
| void | setX (double x) |
| double | y () const |
| void | setY (double y) |
| double | z () const |
| void | setZ (double z) |
Public Attributes | |
| double | DtQ0 |
| This should be private, but they have been public for so long that we will keep it that way. | |
| double | DtQ1 |
| W. | |
| double | DtQ2 |
| X. | |
| double | DtQ3 |
| Y. | |
Quaternions are used to represent orientation of an object.
They are more accurate than TaitBryan but not standardized by RPR or DIS.
create an empty quaternion (w = x = y = z = 0)
| DtQuaternion::DtQuaternion | ( | double | w, |
| double | x, | ||
| double | y, | ||
| double | z | ||
| ) |
create an initialized quaternion
| DtQuaternion::DtQuaternion | ( | const DtQuaternion & | other | ) |
copy ctor
| DtQuaternion::DtQuaternion | ( | const DtTaitBryan & | tb | ) |
Converts TaitBryan class to a Quaternion.
| DtQuaternion& DtQuaternion::operator= | ( | const DtQuaternion & | other | ) |
Assignment operator.
| void DtQuaternion::printDataToStream | ( | std::ostream & | str | ) | const |
| void DtQuaternion::setW | ( | double | w | ) | [inline] |
| void DtQuaternion::setX | ( | double | x | ) | [inline] |
| void DtQuaternion::setY | ( | double | y | ) | [inline] |
| void DtQuaternion::setZ | ( | double | z | ) | [inline] |
| DtString DtQuaternion::string | ( | ) | const |
Returns a DtString representation of this object.
| double DtQuaternion::w | ( | ) | const [inline] |
| double DtQuaternion::x | ( | ) | const [inline] |
| double DtQuaternion::y | ( | ) | const [inline] |
| double DtQuaternion::z | ( | ) | const [inline] |
| double DtQuaternion::DtQ0 |
This should be private, but they have been public for so long that we will keep it that way.
| double DtQuaternion::DtQ1 |
W.
| double DtQuaternion::DtQ2 |
X.
| double DtQuaternion::DtQ3 |
Y.