Castor3D 0.16.0
Multiplatform 3D engine
|
Template class which handles the interpolations, would it be quaternion, point, real, ... interpolations. More...
#include <Interpolator.hpp>
Public Member Functions | |
virtual C3D_API | ~Interpolator () noexcept=default |
virtual C3D_API DataT | interpolate (DataT const &src, DataT const &dst, float percent) const =0 |
Interpolation function. | |
InterpolatorType | getType () const |
Protected Member Functions | |
Interpolator (InterpolatorType type) | |
Template class which handles the interpolations, would it be quaternion, point, real, ... interpolations.
|
inlineexplicitprotected |
|
virtualdefaultnoexcept |
|
inline |
|
pure virtual |
Interpolation function.
[in] | src | The start. |
[in] | dst | The end. |
[in] | percent | The percentage. |
Implemented in castor3d::InterpolatorT< castor::Quaternion, InterpolatorType::eLinear >, castor3d::InterpolatorT< DataT, InterpolatorType::eNearest >, and castor3d::InterpolatorT< DataT, InterpolatorType::eLinear >.