Home | All Classes | Grouped Classes | Index | Search

Class CL_BezierCurve

Class for Bezier curves More...

Derived from: none
Derived by: none
Group: Core (Math)

#include <ClanLib/core.h>

Construction:

CL_BezierCurve

Constructor

Attributes:

get_steps

Returns the number of steps

get_cs

Returns the number of curve segments

get_stepping

Returns whether steps is the number of points per segment or per curve.

get_length

Returns the lenght of a segment (or the curve)

get_curve

Returns an array of cs * steps CL_Vectors -> the curve

get_control_points

Returns the 4 * cs control points

Operations:

set_steps

Sets the number of steps

set_stepping

Sets the stepping

Operators:

operator []

Returns the n-th vector of the curve (_doesn't_ return a reference)

Detailed description:

This class generates points on a Bezier curve from given control points

USE AT YOUR OWN RISK TILL THIS CLASS IS EXTENSIVELY TESTED!!! I WILL REMOVE THIS WARNING ONCE IT BASICALLY WORKS.

I hate documentation work and I won't document this code before any one besides me actually uses it. So if you want to use it simply write a mail on the ClanLib User list and I will do what I can :-)

  1999/12/30	vogel       renamed CL_Bezier to CL_BezierCurve
                          added CL_BezierSurface

  1999/07/07	vogel       initial version


  BezierCurve TODO: 

  - length and stepping per curve
  

stepping per curve means that the generated points are equidistant to each other and this requires get_length() working. So at the moment all that is working is having 'n' equidistant points per segment.

same applies to BezierSurface.



Questions or comments, write to the
ClanLib mailing list.