Mondschein Engine
0.3.0
|
This class represents a generic Bezier curve with a variable degree. More...
#include <beziercurve.h>
Public Member Functions | |
virtual Eigen::Vector3d | operator() (float64 _t) const |
Curve point access operator. More... | |
virtual void | set_points (const std::vector< Eigen::Vector4d > &_p) |
Set the interpolation points. More... | |
virtual std::vector < Eigen::Vector4d > | get_points () const |
Get the interpolation points. More... | |
virtual uint32 | get_degree () const |
Get the curve degree. More... | |
virtual Eigen::Vector3d | get_point (float64 _t) const |
Get an interpolated curve point. More... | |
This class represents a generic Bezier curve with a variable degree.
The Beziercurve class contains the parametric representation of an arbitrary Bezier curve. This means that the degree of the curve varies with inserting or deleting interpolation points since the degree of any Bezier curve is the number of interpolation points - 1.
Curve points are interpolated using the deCastlejau algorithm.
Definition at line 40 of file beziercurve.h.
|
virtual |
|
virtual |
Get an interpolated curve point.
_t | the location between [0,1] of the interpolated point |
mondschein | exception if a known exception is thrown during execution or if there are no interpolation points |
Definition at line 83 of file beziercurve.cpp.
|
virtual |
Get the interpolation points.
Definition at line 73 of file beziercurve.cpp.
|
virtual |
Curve point access operator.
_t | the location between [0,1] of the interpolated point |
mondschein::exception | if a known exception is thrown during execution |
Definition at line 52 of file beziercurve.cpp.
|
virtual |
Set the interpolation points.
_p | the interpolation points |
Definition at line 67 of file beziercurve.cpp.