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

Public Types

using point_type = PointT

Public Member Functions

 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, float >
virtual std::unique_ptr< interpolator > clone () const=0
virtual ValueT at (float t) const=0
 Return the interpolated value at position t.
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].

Public Attributes

std::vector< point_type > points

Detailed Description

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

Definition at line 572 of file interpolate.h.

Member Typedef Documentation

◆ point_type

template<typename PointT, typename ValueT, typename ParamT = float>
using cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >::point_type = PointT

Definition at line 574 of file interpolate.h.

Constructor & Destructor Documentation

◆ piecewise_interpolator_storage() [1/4]

template<typename PointT, typename ValueT, typename ParamT = float>
cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >::piecewise_interpolator_storage ( )
inline

Definition at line 576 of file interpolate.h.

◆ piecewise_interpolator_storage() [2/4]

template<typename PointT, typename ValueT, typename ParamT = float>
cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >::piecewise_interpolator_storage ( std::initializer_list< point_type > points)
inline

Definition at line 578 of file interpolate.h.

◆ piecewise_interpolator_storage() [3/4]

template<typename PointT, typename ValueT, typename ParamT = float>
cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >::piecewise_interpolator_storage ( const std::vector< point_type > & points)
inline

Definition at line 580 of file interpolate.h.

◆ piecewise_interpolator_storage() [4/4]

template<typename PointT, typename ValueT, typename ParamT = float>
template<class IteratorT>
cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >::piecewise_interpolator_storage ( IteratorT first,
IteratorT last )
inline

Definition at line 583 of file interpolate.h.

Member Data Documentation

◆ points

template<typename PointT, typename ValueT, typename ParamT = float>
std::vector<point_type> cgv::math::piecewise_interpolator_storage< PointT, ValueT, ParamT >::points

Definition at line 587 of file interpolate.h.


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