53 #ifndef ACG_BEZIERCURVE_HH 54 #define ACG_BEZIERCURVE_HH 76 template <
class Po
int>
81 typedef typename Point::value_type Scalar;
83 typedef std::vector<Point> Base;
94 unsigned int degree()
const {
return Base::size()-1; }
104 void subdivide(Scalar _t, Self& _curve0, Self& _curve1)
const;
112 #if defined(INCLUDE_TEMPLATES) && !defined(ACG_BEZIERCURVE_C) 113 #define ACG_BEZIERCURVE_TEMPLATES 114 #include "BezierCurveT_impl.hh" 117 #endif // ACG_BEZIERCURVE_HH defined Namespace providing different geometric functions concerning angles.
BezierCurveT()
constructor
unsigned int degree() const
return degree (= size()-1)
void subdivide(Scalar _t, Self &_curve0, Self &_curve1) const
~BezierCurveT()
destructor
Point operator()(Scalar _t) const
evaluate curve at parameter _t using deCasteljau