cgv
Loading...
Searching...
No Matches
cgv::math::uniform_smooth_interpolator< ValueT, ParamT > Class Template Reference
Inheritance diagram for cgv::math::uniform_smooth_interpolator< ValueT, ParamT >:
cgv::math::uniform_piecewise_interpolator< ValueT, ParamT > cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT > cgv::math::interpolator< ValueT, ParamT >

Public Member Functions

std::unique_ptr< interpolator< ValueT, ParamT > > clone () const override
 
ValueT at (ParamT t) const override
 Return the interpolated value at position t.
 
- Public Member Functions inherited from cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >
 piecewise_interpolator_storage (std::initializer_list< point_type > points)
 
 piecewise_interpolator_storage (const std::vector< point_type > &points)
 
template<class IteratorT >
 piecewise_interpolator_storage (IteratorT first, IteratorT last)
 
- Public Member Functions inherited from cgv::math::interpolator< ValueT, ParamT >
virtual std::vector< ValueT > quantize (size_t n) const
 Return a sequence of n uniformly-spaced samples from the interpolator within the parameter range [0,1].
 

Additional Inherited Members

- Public Types inherited from cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >
using point_type = PointT
 
- Public Attributes inherited from cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >
std::vector< point_type > points
 

Detailed Description

template<typename ValueT, typename ParamT = float>
class cgv::math::uniform_smooth_interpolator< ValueT, ParamT >

Definition at line 684 of file interpolate.h.

Member Function Documentation

◆ at()

template<typename ValueT , typename ParamT = float>
ValueT cgv::math::uniform_smooth_interpolator< ValueT, ParamT >::at ( ParamT  t) const
inlineoverridevirtual

Return the interpolated value at position t.

Parameters
tThe position at which to evaluate the interpolator. Typically in the range [0,1].
Returns
The interpolated value.

Implements cgv::math::interpolator< ValueT, ParamT >.

Definition at line 694 of file interpolate.h.

◆ clone()

template<typename ValueT , typename ParamT = float>
std::unique_ptr< interpolator< ValueT, ParamT > > cgv::math::uniform_smooth_interpolator< ValueT, ParamT >::clone ( ) const
inlineoverridevirtual

Implements cgv::math::interpolator< ValueT, ParamT >.

Definition at line 690 of file interpolate.h.


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