Assimp  v3.0 (July 2012)
Public Member Functions
Assimp::Interpolator< T > Struct Template Reference

CPP-API: Utility class to simplify interpolations of various data types. More...

List of all members.

Public Member Functions

void operator() (T &out, const T &a, const T &b, float d) const
 Get the result of the interpolation between a,b.

Detailed Description

template<typename T>
struct Assimp::Interpolator< T >

CPP-API: Utility class to simplify interpolations of various data types.

The type of interpolation is choosen automatically depending on the types of the arguments.


Member Function Documentation

template<typename T >
void Assimp::Interpolator< T >::operator() ( T &  out,
const T &  a,
const T &  b,
float  d 
) const
inline

Get the result of the interpolation between a,b.

The interpolation algorithm depends on the type of the operands. aiQuaternion's and aiQuatKey's SLERP, the rest does a simple linear interpolation.


The documentation for this struct was generated from the following file: