![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Class for Bezier curves
Contained in: global
Derived from:
none
Derived by:
none
Group: Core (Math)
#include <ClanLib/core.h>
public function member index: |
||
Construction: |
||
CL_BezierCurve | (const CL_Vector* cp, int cs, int steps, bool stepping = true); | |
virtual | ~CL_BezierCurve | (); |
Attributes: |
||
virtual int | get_steps | () const; |
virtual int | get_cs | () const; |
virtual bool | get_stepping | () const; |
virtual float | get_length | (int segment = -1) const; |
virtual CL_Vector* | get_curve | () const; |
virtual CL_Vector* | get_control_points | () const; |
Operations: |
||
virtual void | set_steps | (int steps); |
virtual void | set_stepping | (bool stepping); |
Operators: |
||
CL_Vector | operator [] | (int n); |
protected function member index: |
||
virtual void | make_curve | (); |
cp - an array of control points with size (4 * cs)
cs - number of curve segments
steps - number of points to generate
stepping - whether steps is the number of points per segment or per curve.
Returns - the 4 * cs control points
Returns - number of curve segments
Returns - the curve (cs * steps CL_Vectors)
segment - number of segment (-1 indicates whole curve)
Returns - length of segment (or curve)
Returns - stepping
Returns - number of steps
n - the vector to return (counting starts at 0)
Returns - the n-th vector of the curve (_doesn't_ return a reference)
stepping - whether steps is the number of points per segment or per curve.
steps - number of steps