HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
quaternion.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/gf/api.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/tf/hash.h"
#include <iosfwd>
+ 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
 

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

Function Documentation

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

Returns the dot (inner) product of two quaternions.

Definition at line 247 of file quaternion.h.

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

Spherically interpolate between q0 and q1.

If the interpolant alpha is zero, then the result is q0, while alpha of one yields 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)).