Functor template for quaternion spherical-linear interpolation. More...
#include </home/chochlik/devel/oglplus/include/oglplus/math/quaternion.hpp>
Public Member Functions | |
QuaternionSLERP (const Quaternion< T > &q1, const Quaternion< T > &q2, T eps=0.001) | |
Constructs a SLERP functor from two unit quaternions. More... | |
Quaternion< T > | operator() (T param) const |
Interpolates between the values passed to constructor. More... | |
Functor template for quaternion spherical-linear interpolation.
QuaternionSLERP can be used to smoothly interpolate between two unit quaternions.
oglplus::QuaternionSLERP< T >::QuaternionSLERP | ( | const Quaternion< T > & | q1, |
const Quaternion< T > & | q2, | ||
T | eps = 0.001 |
||
) |
Constructs a SLERP functor from two unit quaternions.
|
inherited |
Interpolates between the values passed to constructor.