|  | 
|  | DualQuaternion () | 
|  | Default constructor, initializes to identity rotation (aka 0°), and zero translation (0,0,0) 
 | 
|  | 
|  | DualQuaternion (const Matrix4 &rot) | 
|  | Construct a dual quaternion from a transformation matrix. 
 | 
|  | 
|  | DualQuaternion (const Quaternion &q, const Vector3 &trans) | 
|  | Construct a dual quaternion from a unit quaternion and a translation vector. 
 | 
|  | 
|  | DualQuaternion (Real *valptr) | 
|  | Construct a dual quaternion from 8 manual w/x/y/z/dw/dx/dy/dz values. 
 | 
|  | 
|  | DualQuaternion (Real fW, Real fX, Real fY, Real fZ, Real fdW, Real fdX, Real fdY, Real fdZ) | 
|  | Construct from an explicit list of values. 
 | 
|  | 
| void | fromRotationTranslation (const Quaternion &q, const Vector3 &trans) | 
|  | Construct a dual quaternion from a rotation described by a Quaternion and a translation described by a Vector3. 
 | 
|  | 
| void | fromTransformationMatrix (const Matrix4 &kTrans) | 
|  | Construct a dual quaternion from a 4x4 transformation matrix. 
 | 
|  | 
| bool | isNaN () const | 
|  | Check whether this dual quaternion contains valid values. 
 | 
|  | 
| bool | operator!= (const DualQuaternion &rhs) const | 
|  | 
| DualQuaternion & | operator= (const DualQuaternion &rkQ) | 
|  | 
| bool | operator== (const DualQuaternion &rhs) const | 
|  | 
| Real & | operator[] (const size_t i) | 
|  | Array accessor operator. 
 | 
|  | 
| Real | operator[] (const size_t i) const | 
|  | Array accessor operator. 
 | 
|  | 
| Real * | ptr () | 
|  | Pointer accessor for direct copying. 
 | 
|  | 
| const Real * | ptr () const | 
|  | Pointer accessor for direct copying. 
 | 
|  | 
| void | swap (DualQuaternion &other) | 
|  | Exchange the contents of this dual quaternion with another. 
 | 
|  | 
| void | toRotationTranslation (Quaternion &q, Vector3 &translation) const | 
|  | Convert a dual quaternion into its two components, a Quaternion representing the rotation and a Vector3 representing the translation. 
 | 
|  | 
| void | toTransformationMatrix (Matrix4 &kTrans) const | 
|  | Convert a dual quaternion to a 4x4 transformation matrix. 
 | 
|  | 
Implementation of a dual quaternion, i.e. 
a rotation around an axis and a translation. This implementation may note be appropriate as a general implementation, but is intended for use with dual quaternion skinning. 
Function for writing to a stream. 
Outputs "DualQuaternion(w, x, y, z, dw, dx, dy, dz)" with w, x, y, z, dw, dx, dy, dz being the member values of the dual quaternion.