53#ifndef ACG_BEZIERCURVE_HH
54#define ACG_BEZIERCURVE_HH
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"
~BezierCurveT()
destructor
unsigned int degree() const
return degree (= size()-1)
void subdivide(Scalar _t, Self &_curve0, Self &_curve1) const
Point operator()(Scalar _t) const
evaluate curve at parameter _t using deCasteljau
BezierCurveT()
constructor
Namespace providing different geometric functions concerning angles.