This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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.

Classes

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

Functions

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)).
 
double GfDot (const GfQuaternion &q1, const GfQuaternion &q2)
 Returns the dot (inner) product of two quaternions.
 

Function Documentation

◆ GfDot()

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

Returns the dot (inner) product of two quaternions.

Definition at line 230 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.