Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::InterpolatorT< DataT, InterpolatorType::eLinear > Class Template Reference

Partial specialisation of InterpolatorT, for InterpolatorType::eLinear. More...

#include <Interpolator.hpp>

Inheritance diagram for castor3d::InterpolatorT< DataT, InterpolatorType::eLinear >:
Inheritance graph
[legend]
Collaboration diagram for castor3d::InterpolatorT< DataT, InterpolatorType::eLinear >:
Collaboration graph
[legend]

Public Member Functions

 InterpolatorT ()
 
DataT interpolate (DataT const &src, DataT const &dst, float percent) const override
 Interpolation function.
 
- Public Member Functions inherited from castor3d::Interpolator< DataT >
virtual C3D_API ~Interpolator () noexcept=default
 
InterpolatorType getType () const
 

Additional Inherited Members

- Protected Member Functions inherited from castor3d::Interpolator< DataT >
 Interpolator (InterpolatorType type)
 

Detailed Description

template<class DataT>
class castor3d::InterpolatorT< DataT, InterpolatorType::eLinear >

Partial specialisation of InterpolatorT, for InterpolatorType::eLinear.

Constructor & Destructor Documentation

◆ InterpolatorT()

template<class DataT >
castor3d::InterpolatorT< DataT, InterpolatorType::eLinear >::InterpolatorT ( )
inline

References castor3d::eLinear.

Member Function Documentation

◆ interpolate()

template<class DataT >
DataT castor3d::InterpolatorT< DataT, InterpolatorType::eLinear >::interpolate ( DataT const & src,
DataT const & dst,
float percent ) const
inlineoverridevirtual

Interpolation function.

Parameters
[in]srcThe start.
[in]dstThe end.
[in]percentThe percentage.

Implements castor3d::Interpolator< DataT >.


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