Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXQuatd Class Reference

Double-precision quaternion. More...

#include <FXQuatd.h>

List of all members.

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.
FXQuatdoperator= (const FXQuatd &v)
 Assignment.
FXQuatdoperator= (const FXdouble v[])
 Assignment from array of doubles.
FXQuatdset (const FXQuatd &v)
 Set value from another vector.
FXQuatdset (const FXdouble v[])
 Set value from array of floats.
FXQuatdset (FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww)
 Set value from components.
FXQuatdoperator*= (FXdouble n)
 Assigning operators.
FXQuatdoperator/= (FXdouble n)
FXQuatdoperator+= (const FXQuatd &v)
FXQuatdoperator-= (const FXQuatd &v)
FXQuatdoperator*= (const FXQuatd &b)
FXQuatdoperator/= (const FXQuatd &b)
 operator FXdouble * ()
 Conversion.
 operator const FXdouble * () const
FXbool operator! () const
 Test if zero.
FXQuatd operator+ () const
 Unary.
FXQuatd operator- () const
FXVec3d operator* (const FXVec3d &v) const
 Rotation of a vector by a quaternion.
FXdouble length2 () const
 Length and square of length.
FXdouble length () const
FXQuatdadjust ()
 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.
 ~FXQuatd ()
 Destructor.

Public Attributes

double x
double y
double z
double w

Detailed Description

Double-precision quaternion.


The documentation for this class was generated from the following file:

Copyright © 1997-2016 Jeroen van der Zijp