ClanLib  2.3.7
List of all members
CL_BezierCurve Class Reference

Bezier curve generator. More...

#include <bezier_curve.h>

Public Member Functions

Construction
 CL_BezierCurve ()
 Constructs a bezier curve generator. More...
 
virtual ~CL_BezierCurve ()
 
Attributes
std::vector< CL_Pointfget_control_points () const
 Returns the control points of the bezier. More...
 
Operations
void add_control_point (float x, float y)
 Adds a control point to bezier. More...
 
void add_control_point (const CL_Pointf &)
 
std::vector< CL_Pointfgenerate_curve_points (const CL_Angle &split_angle)
 Generates points on the bezier curve. More...
 
CL_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

CL_BezierCurve::CL_BezierCurve ( )

Constructs a bezier curve generator.

virtual CL_BezierCurve::~CL_BezierCurve ( )
virtual

Member Function Documentation

void CL_BezierCurve::add_control_point ( float  x,
float  y 
)

Adds a control point to bezier.

void CL_BezierCurve::add_control_point ( const CL_Pointf )
std::vector<CL_Pointf> CL_BezierCurve::generate_curve_points ( const CL_Angle split_angle)

Generates points on the bezier curve.

std::vector<CL_Pointf> CL_BezierCurve::get_control_points ( ) const

Returns the control points of the bezier.

CL_Pointf CL_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: