59 #ifndef ACG_BEZIERCURVE_HH
60 #define ACG_BEZIERCURVE_HH
82 template <
class Po
int>
87 typedef typename Point::value_type Scalar;
89 typedef std::vector<Point> Base;
100 unsigned int degree()
const {
return Base::size()-1; }
110 void subdivide(Scalar _t, Self& _curve0, Self& _curve1)
const;
118 #if defined(INCLUDE_TEMPLATES) && !defined(ACG_BEZIERCURVE_C)
119 #define ACG_BEZIERCURVE_TEMPLATES
120 #include "BezierCurveT.cc"
123 #endif // ACG_BEZIERCURVE_HH defined
unsigned int degree() const
return degree (= size()-1)
Point operator()(Scalar _t) const
evaluate curve at parameter _t using deCasteljau
Namespace providing different geometric functions concerning angles.
void subdivide(Scalar _t, Self &_curve0, Self &_curve1) const
~BezierCurveT()
destructor
BezierCurveT()
constructor