| glVertex
    5.5.2
    | 
2D bezier path consisting of multiple bezier curves More...
#include <glvertex_bezier.h>
Inherits vector< lgl_BezierCurve2D >.
| Public Member Functions | |
| unsigned int | addPoint (vec2 p, bool align=true) | 
| add a point to the 2D bezier path  More... | |
| void | straighten () | 
| disable alignment for the last added point | |
| void | close () | 
| close the 2D bezier path by reduplicating the first point | |
| bool | closed () const | 
| is the 2D bezier path a closed path? | |
| vec2 | start () | 
| start point | |
| vec2 | end () | 
| end point | |
| vec2 | evaluate (double w) const | 
| evaluate the 2D bezier path | |
| vec2 | gradient (double w, int mode=0, double d=0.001) const | 
| evaluate the gradient of the 2D bezier path | |
| vec2 | normal (double w, int mode=0, double d=0.001) const | 
| compute the normal of the 2D bezier path | |
| double | length (int steps=100) const | 
| compute length of path | |
| void | align (unsigned int index, vec2 direction, double factor=(sqrt(2.0) -1) *4/3) | 
| auto-align two consecutive control points of the 2D bezier path | |
| void | alignLeft (vec2 direction, double factor=(sqrt(2.0) -1) *4/3) | 
| auto-align the left-most control point of the 2D bezier path | |
| void | alignRight (vec2 direction, double factor=(sqrt(2.0) -1) *4/3) | 
| auto-align the right-most control point of the 2D bezier path | |
| void | alignCurves (double factor=(sqrt(2.0) -1) *4/3) | 
| auto-align the curves of the 2D bezier path | |
| void | translate (vec2 v) | 
| translate path | |
| void | rotate (double angle) | 
| rotate path | |
| void | scale (vec2 s) | 
| scale path | |
2D bezier path consisting of multiple bezier curves
| 
 | inline | 
add a point to the 2D bezier path
 1.8.17
 1.8.17