cgv
Loading...
Searching...
No Matches
cgv::math::bezier_curve< PointT > Class Template Reference
Inheritance diagram for cgv::math::bezier_curve< PointT >:
cgv::math::parametric_curve< bezier_curve< PointT > >

Public Member Functions

 bezier_curve (std::initializer_list< PointT > points)
 
template<typename ParamT = float>
PointT evaluate (ParamT t) const
 

Public Attributes

std::vector< PointT > points
 the control points
 

Detailed Description

template<typename PointT>
class cgv::math::bezier_curve< PointT >

Definition at line 12 of file bezier.h.

Constructor & Destructor Documentation

◆ bezier_curve() [1/2]

template<typename PointT >
cgv::math::bezier_curve< PointT >::bezier_curve ( )
inline

Definition at line 17 of file bezier.h.

◆ bezier_curve() [2/2]

template<typename PointT >
cgv::math::bezier_curve< PointT >::bezier_curve ( std::initializer_list< PointT >  points)
inline

Definition at line 18 of file bezier.h.

Member Function Documentation

◆ evaluate()

template<typename PointT >
template<typename ParamT = float>
PointT cgv::math::bezier_curve< PointT >::evaluate ( ParamT  t) const
inline

Definition at line 21 of file bezier.h.

Member Data Documentation

◆ points

template<typename PointT >
std::vector<PointT> cgv::math::bezier_curve< PointT >::points

the control points

Definition at line 15 of file bezier.h.


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