clan::BezierCurve Class Reference

Bezier curve generator. More...

#include <bezier_curve.h>

Public Member Functions

 BezierCurve ()
 Constructs a bezier curve generator. More...
 
virtual ~BezierCurve ()
 
void add_control_point (float x, float y)
 Adds a control point to bezier. More...
 
void add_control_point (const Pointf &)
 
std::vector< Pointfgenerate_curve_points (const Angle &split_angle)
 Generates points on the bezier curve. More...
 
std::vector< Pointfget_control_points () const
 Returns the control points of the bezier. More...
 
Pointf get_point_relative (float pos_0_to_1) const
 Get a point on the bezier curve. More...
 

Detailed Description

Bezier curve generator.

Constructor & Destructor Documentation

clan::BezierCurve::BezierCurve ( )

Constructs a bezier curve generator.

virtual clan::BezierCurve::~BezierCurve ( )
virtual

Member Function Documentation

void clan::BezierCurve::add_control_point ( float  x,
float  y 
)

Adds a control point to bezier.

void clan::BezierCurve::add_control_point ( const Pointf )
std::vector<Pointf> clan::BezierCurve::generate_curve_points ( const Angle split_angle)

Generates points on the bezier curve.

std::vector<Pointf> clan::BezierCurve::get_control_points ( ) const

Returns the control points of the bezier.

Pointf clan::BezierCurve::get_point_relative ( float  pos_0_to_1) const

Get a point on the bezier curve.


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