Implementation of the Bézier curve. More...
#include <curve.hpp>
Classes | |
class | control_point |
The control_point class describes a control point of the curve, with the direction of the curve before and after the point. More... | |
class | section |
A section is a part of the curve between two control points. More... | |
Public Types | |
typedef C | coordinate_type |
The type of the coordinates of the curve. | |
typedef Traits | traits_type |
The traits provide an access to the properties of the coordinates. | |
typedef traits_type::value_type | value_type |
The type of the components of the coordinates. | |
typedef control_point_list::iterator | iterator |
The type of the iterator on the control points of the curve. | |
typedef control_point_list::const_iterator | const_iterator |
The type of the iterator on the control points of the curve. | |
Public Member Functions | |
void | push_back (const control_point &p) |
void | push_front (const control_point &p) |
void | insert (const iterator &pos, const control_point &p) |
section | get_section (const const_iterator &pos) const |
std::vector< typename section::resolved_point > | get_point_at_x (value_type x, bool off_domain=false) const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
Implementation of the Bézier curve.
The curve is made of a sequence of points, each of which having a direction telling how the curve enters the point and how to leave.
typedef control_point_list::const_iterator claw::math::curve< C, Traits >::const_iterator |
typedef C claw::math::curve< C, Traits >::coordinate_type |
typedef control_point_list::iterator claw::math::curve< C, Traits >::iterator |
typedef Traits claw::math::curve< C, Traits >::traits_type |
typedef traits_type::value_type claw::math::curve< C, Traits >::value_type |