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

Public Member Functions

 quadratic_bezier_curve (const PointT &p0, const PointT &p1, const PointT &p2)
 
template<typename ParamT = float>
PointT evaluate (ParamT t) const
 
template<typename ParamT = float>
PointT derivative (ParamT t) const
 
std::pair< PointT, PointT > axis_aligned_bounding_box () const
 

Public Attributes

PointT p0 = { 0 }
 the start control point
 
PointT p1 = { 0 }
 the middle control point
 
PointT p2 = { 0 }
 the end control point
 

Detailed Description

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

Definition at line 42 of file bezier.h.

Constructor & Destructor Documentation

◆ quadratic_bezier_curve() [1/2]

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

Definition at line 51 of file bezier.h.

◆ quadratic_bezier_curve() [2/2]

template<typename PointT >
cgv::math::quadratic_bezier_curve< PointT >::quadratic_bezier_curve ( const PointT &  p0,
const PointT &  p1,
const PointT &  p2 
)
inline

Definition at line 52 of file bezier.h.

Member Function Documentation

◆ axis_aligned_bounding_box()

template<typename PointT >
std::pair< PointT, PointT > cgv::math::quadratic_bezier_curve< PointT >::axis_aligned_bounding_box ( ) const
inline

Definition at line 64 of file bezier.h.

◆ derivative()

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

Definition at line 60 of file bezier.h.

◆ evaluate()

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

Definition at line 55 of file bezier.h.

Member Data Documentation

◆ p0

template<typename PointT >
PointT cgv::math::quadratic_bezier_curve< PointT >::p0 = { 0 }

the start control point

Definition at line 45 of file bezier.h.

◆ p1

template<typename PointT >
PointT cgv::math::quadratic_bezier_curve< PointT >::p1 = { 0 }

the middle control point

Definition at line 47 of file bezier.h.

◆ p2

template<typename PointT >
PointT cgv::math::quadratic_bezier_curve< PointT >::p2 = { 0 }

the end control point

Definition at line 49 of file bezier.h.


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