![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Class for Bezier surfaces
Contained in: global
Derived from:
none
Derived by:
none
Group: Core (Math)
#include <ClanLib/core.h>
public function member index: |
||
Construction: |
||
CL_BezierSurface | (const CL_Vector* cp, int xs, int ys, int xsteps, int ysteps, bool stepping = true); | |
virtual | ~CL_BezierSurface | (); |
Attributes: |
||
virtual int | get_xsteps | () const; |
virtual int | get_ysteps | () const; |
virtual int | get_xs | () const; |
virtual int | get_ys | () const; |
virtual bool | get_stepping | () const; |
virtual CL_Vector* | get_surface | () const; |
virtual CL_Vector* | get_control_points | () const; |
Operations: |
||
virtual void | set_xsteps | (int xsteps); |
virtual void | set_ysteps | (int ysteps); |
virtual void | set_stepping | (bool stepping); |
Operators: |
||
CL_Vector | operator [] | (int n); |
protected function member index: |
||
virtual CL_Vector | evaluate | (float, float, int); |
virtual void | make_surface | (); |
cp - an array of control points with size (16 * xs * ys)
xs - number of surface segments on x direction
ys - number of surface segments on y direction
xsteps - number of points to generate on x direction
ysteps - number of points to generate on x direction
stepping - whether steps is the number of points per segment or per surface.
Returns - the 16 * xs * ys control points
Returns - stepping
Returns - the curve (xs * xsteps * ys * ystepes CL_Vectors)
Returns - number of surface segments
Returns - number of steps
Returns - number of surface segments
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
steps - number of steps