Mondschein Engine  0.3.0
Public Member Functions | List of all members
mondschein::math::Beziercurve Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

uint32 Beziercurve::get_degree ( ) const
virtual

Get the curve degree.

Returns
the degree of *this

Definition at line 78 of file beziercurve.cpp.

Eigen::Vector3d Beziercurve::get_point ( float64  _t) const
virtual

Get an interpolated curve point.

Parameters
_tthe location between [0,1] of the interpolated point
Returns
the interpolated curve point vector
Exceptions
mondscheinexception if a known exception is thrown during execution or if there are no interpolation points

Definition at line 83 of file beziercurve.cpp.

std::vector< Eigen::Vector4d > Beziercurve::get_points ( ) const
virtual

Get the interpolation points.

Returns
the interpolation points of *this

Definition at line 73 of file beziercurve.cpp.

Eigen::Vector3d Beziercurve::operator() ( float64  _t) const
virtual

Curve point access operator.

Parameters
_tthe location between [0,1] of the interpolated point
Returns
the interpolated point vector
Exceptions
mondschein::exceptionif a known exception is thrown during execution

Definition at line 52 of file beziercurve.cpp.

void Beziercurve::set_points ( const std::vector< Eigen::Vector4d > &  _p)
virtual

Set the interpolation points.

Parameters
_pthe interpolation points

Definition at line 67 of file beziercurve.cpp.


The documentation for this class was generated from the following files: