quaternion.h File Reference
+ Include dependency graph for quaternion.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  GfQuaternion
 Basic type: complex number with scalar real part and vector imaginary part. More...


GF_API GfQuaternion GfSlerp (double alpha, const GfQuaternion &q0, const GfQuaternion &q1)
GF_API GfQuaternion GfSlerp (const GfQuaternion &q0, const GfQuaternion &q1, double alpha)
GF_API std::ostream & operator<< (std::ostream &out, const GfQuaternion &q)
 Output a GfQuaternion using the format (r + (x, y, z)). More...
double GfDot (const GfQuaternion &q1, const GfQuaternion &q2)
 Returns the dot (inner) product of two quaternions. More...

Function Documentation

◆ GfDot()

double GfDot ( const GfQuaternion q1,
const GfQuaternion q2 

Returns the dot (inner) product of two quaternions.

Definition at line 251 of file quaternion.h.

◆ GfSlerp()

GF_API GfQuaternion GfSlerp ( double  alpha,
const GfQuaternion q0,
const GfQuaternion q1 

If the interpolant alpha is zero, then the result is q0, while alpha of one yields q1.