V-ART
bezier.h
Go to the documentation of this file.
1 
5 #ifndef VART_BEZIER_H
6 #define VART_BEZIER_H
7 
8 #include "vart/curve.h"
9 #include "vart/point4d.h"
10 
11 namespace VART {
16  class Bezier : public Curve {
17  public:
18  Bezier();
20  Point4D GetControlPoint(int i);
21 
23  void SetControlPoint(int i, const Point4D& point);
24 
28  virtual void GetPoint(double t, Point4D* result);
29  }; // end class declaration
30 } // end namespace
31 #endif
Points and vectors using homogeneous coordinates.
Definition: point4d.h:22
A paramteric curve in 3D/4D space.
Definition: curve.h:18
A Bezier curve.
Definition: bezier.h:16
Point4D GetControlPoint(int i)
Returns a copy a control point.
Definition: bezier.cpp:16
Header file for V-ART class "Curve".
Header file for V-ART class "Point4D".
void SetControlPoint(int i, const Point4D &point)
Assigns a (copy of a) control point.
Definition: bezier.cpp:22
virtual void GetPoint(double t, Point4D *result)
Returns a point of the curve.
Definition: bezier.cpp:28