Home | All Classes | Grouped Classes | Index | Search
Class for Bezier curves More...
Derived from:
none
Derived by:
none
Group: Core (Math)
#include <ClanLib/core.h>
Construction:
Constructor |
Attributes:
Returns the number of steps | |
Returns the number of curve segments | |
Returns whether steps is the number of points per segment or per curve. | |
Returns the lenght of a segment (or the curve) | |
Returns an array of cs * steps CL_Vectors -> the curve | |
Returns the 4 * cs control points |
Operations:
Sets the number of steps | |
Sets the stepping |
Operators:
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.