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

Public Member Functions

 cubic_bezier_curve (const PointT &p0, const PointT &p1, const PointT &p2, const PointT &p3)
 
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 first control point
 
PointT p1 = { 0 }
 the second control point
 
PointT p2 = { 0 }
 the third control point
 
PointT p3 = { 0 }
 the fourth control point
 

Detailed Description

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

Definition at line 116 of file bezier.h.

Constructor & Destructor Documentation

◆ cubic_bezier_curve() [1/2]

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

Definition at line 127 of file bezier.h.

◆ cubic_bezier_curve() [2/2]

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

Definition at line 128 of file bezier.h.

Member Function Documentation

◆ axis_aligned_bounding_box()

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

Definition at line 140 of file bezier.h.

◆ derivative()

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

Definition at line 136 of file bezier.h.

◆ evaluate()

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

Definition at line 131 of file bezier.h.

Member Data Documentation

◆ p0

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

the first control point

Definition at line 119 of file bezier.h.

◆ p1

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

the second control point

Definition at line 121 of file bezier.h.

◆ p2

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

the third control point

Definition at line 123 of file bezier.h.

◆ p3

template<typename PointT >
PointT cgv::math::cubic_bezier_curve< PointT >::p3 = { 0 }

the fourth control point

Definition at line 125 of file bezier.h.


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