MVE - Multi-View Environment mve-devel
|
A class for defining and evaluating Bezier curves in all dimensions. More...
#include <bezier_curve.h>
Public Member Functions | |
BezierCurve (void) | |
virtual | ~BezierCurve (void) |
void | append_point (T const &p) |
Appends a new end point or control point to the curve. | |
void | clear (void) |
Removes all control points, resetting the curve. | |
T | evaluate (float t) const |
Evaluates the Bezier curve at position t in [0, 1]. | |
T const & | operator[] (std::size_t index) const |
Returns the control point at the given index. | |
std::size_t | size (void) const |
Returns the amount of control points in the vector. | |
A class for defining and evaluating Bezier curves in all dimensions.
Definition at line 24 of file bezier_curve.h.
|
inline |
Definition at line 59 of file bezier_curve.h.
|
inlinevirtual |
Definition at line 65 of file bezier_curve.h.
|
inline |
Appends a new end point or control point to the curve.
The first and the last point are end points, the points in between are control points. The degree of the polynomial is then the total amount of points minus one.
Definition at line 71 of file bezier_curve.h.
|
inline |
Removes all control points, resetting the curve.
Definition at line 106 of file bezier_curve.h.
|
inline |
Evaluates the Bezier curve at position t in [0, 1].
Definition at line 78 of file bezier_curve.h.
|
inline |
Returns the control point at the given index.
Definition at line 121 of file bezier_curve.h.
|
inline |
Returns the amount of control points in the vector.
Definition at line 114 of file bezier_curve.h.