Loading...
Searching...
No Matches
quatd.h File Reference
+ Include dependency graph for quatd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GfQuatd
 Basic type: a quaternion, a complex number with a real coefficient and three imaginary coefficients, stored as a 3-vector. More...
 

Functions

double GfDot (const GfQuatd &q1, const GfQuatd &q2)
 Return the dot (inner) product of two quaternions.
 
GF_API GfQuatd GfSlerp (double alpha, const GfQuatd &q0, const GfQuatd &q1)
 Spherically linearly interpolate between q0 and q1.
 
GF_API GfQuatd GfSlerp (const GfQuatd &q0, const GfQuatd &q1, double alpha)
 
GF_API std::ostream & operator<< (std::ostream &, GfQuatd const &)
 Output a GfQuatd using the format (re, i, j, k)
 

Function Documentation

◆ GfDot()

double GfDot ( const GfQuatd q1,
const GfQuatd q2 
)
inline

Return the dot (inner) product of two quaternions.

Definition at line 279 of file quatd.h.

◆ GfSlerp()

GF_API GfQuatd GfSlerp ( double  alpha,
const GfQuatd q0,
const GfQuatd q1 
)

Spherically linearly interpolate between q0 and q1.

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