![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Double-precision quaternion. More...
#include <FXQuatd.h>
Public Member Functions | |
| FXQuatd () | |
| Default constructor; value is not initialized. | |
| FXQuatd (const FXQuatd &q) | |
| Copy constructor. | |
| FXQuatd (const FXdouble v[]) | |
| Construct from array of doubles. | |
| FXQuatd (FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww) | |
| Construct from components. | |
| FXQuatd (const FXVec3d &fr, const FXVec3d &to) | |
| Construct quaternion from two unit vectors. | |
| FXQuatd (const FXVec3d &axis, FXdouble phi=0.0) | |
| Construct from axis and angle. | |
| FXQuatd (FXdouble roll, FXdouble pitch, FXdouble yaw) | |
| Construct from euler angles yaw (z), pitch (y), and roll (x) | |
| FXQuatd (const FXVec3d &ex, const FXVec3d &ey, const FXVec3d &ez) | |
| Construct quaternion from three axes. | |
| FXdouble & | operator[] (FXint i) |
| Return a non-const reference to the ith element. | |
| const FXdouble & | operator[] (FXint i) const |
| Return a const reference to the ith element. | |
| FXQuatd & | operator= (const FXQuatd &v) |
| Assignment. | |
| FXQuatd & | operator= (const FXdouble v[]) |
| Assignment from array of doubles. | |
| FXQuatd & | set (const FXQuatd &v) |
| Set value from another vector. | |
| FXQuatd & | set (const FXdouble v[]) |
| Set value from array of floats. | |
| FXQuatd & | set (FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww) |
| Set value from components. | |
| FXQuatd & | operator*= (FXdouble n) |
| Assigning operators. | |
| FXQuatd & | operator/= (FXdouble n) |
| FXQuatd & | operator+= (const FXQuatd &v) |
| FXQuatd & | operator-= (const FXQuatd &v) |
| FXQuatd & | operator*= (const FXQuatd &b) |
| FXQuatd & | operator/= (const FXQuatd &b) |
| operator FXdouble * () | |
| Conversion. | |
| operator const FXdouble * () const | |
| FXbool | operator! () const |
| Test if zero. | |
| FXQuatd | operator+ () const |
| Unary. | |
| FXQuatd | operator- () const |
| FXdouble | length2 () const |
| Length and square of length. | |
| FXdouble | length () const |
| FXQuatd & | adjust () |
| Adjust quaternion length. | |
| void | setAxisAngle (const FXVec3d &axis, FXdouble phi=0.0) |
| Set quaternion from axis and angle. | |
| void | getAxisAngle (FXVec3d &axis, FXdouble &phi) const |
| Obtain axis and angle from quaternion. | |
| void | setRollPitchYaw (FXdouble roll, FXdouble pitch, FXdouble yaw) |
| Set quaternion from roll (x), pitch (y), yaw (z) | |
| void | getRollPitchYaw (FXdouble &roll, FXdouble &pitch, FXdouble &yaw) const |
| void | setYawPitchRoll (FXdouble yaw, FXdouble pitch, FXdouble roll) |
| Set quaternion from yaw (z), pitch (y), roll (x) | |
| void | getYawPitchRoll (FXdouble &yaw, FXdouble &pitch, FXdouble &roll) const |
| void | setRollYawPitch (FXdouble roll, FXdouble yaw, FXdouble pitch) |
| Set quaternion from roll (x), yaw (z), pitch (y) | |
| void | getRollYawPitch (FXdouble &roll, FXdouble &yaw, FXdouble &pitch) const |
| void | setPitchRollYaw (FXdouble pitch, FXdouble roll, FXdouble yaw) |
| Set quaternion from pitch (y), roll (x),yaw (z) | |
| void | getPitchRollYaw (FXdouble &pitch, FXdouble &roll, FXdouble &yaw) const |
| void | setPitchYawRoll (FXdouble pitch, FXdouble yaw, FXdouble roll) |
| Set quaternion from pitch (y), yaw (z), roll (x) | |
| void | getPitchYawRoll (FXdouble &pitch, FXdouble &yaw, FXdouble &roll) const |
| void | setYawRollPitch (FXdouble yaw, FXdouble roll, FXdouble pitch) |
| Set quaternion from yaw (z), roll (x), pitch (y) | |
| void | getYawRollPitch (FXdouble &yaw, FXdouble &roll, FXdouble &pitch) const |
| void | setAxes (const FXVec3d &ex, const FXVec3d &ey, const FXVec3d &ez) |
| Set quaternion from axes. | |
| void | getAxes (FXVec3d &ex, FXVec3d &ey, FXVec3d &ez) const |
| Get quaternion axes. | |
| FXVec3d | getXAxis () const |
| Obtain local x axis. | |
| FXVec3d | getYAxis () const |
| Obtain local y axis. | |
| FXVec3d | getZAxis () const |
| Obtain local z axis. | |
| FXQuatd | exp () const |
| Exponentiate quaternion. | |
| FXQuatd | log () const |
| Take logarithm of quaternion. | |
| FXQuatd | pow (FXdouble t) const |
| Power of quaternion. | |
| FXQuatd | invert () const |
| Invert quaternion. | |
| FXQuatd | unitinvert () const |
| Invert unit quaternion. | |
| FXQuatd | conj () const |
| Conjugate quaternion. | |
| FXVec3d | operator* (const FXVec3d &v) const |
| Rotation of a vector by a quaternion. | |
| ~FXQuatd () | |
| Destructor. | |
Public Attributes | |
| double | x |
| double | y |
| double | z |
| double | w |
Double-precision quaternion.
|
|