Drag[en]gine Script Module DragonScript
1.23
|
3D Bezier curve. More...
Public Member Functions | |
Constructors | |
CurveBezier3D | new () |
Create bezier curve. More... | |
CurveBezier3D | new (CurveBezier3D copy) |
Create copy of bezier curve. More... | |
Management | |
int | getPointCount () |
Number of points. More... | |
Vector | getPointAt (int position) |
Point at position. More... | |
Vector | getHandle1At (int position) |
First handle at position. More... | |
Vector | getHandle2At (int position) |
Second handle at position. More... | |
void | setPointAt (int position, Vector point) |
Set point at position. More... | |
void | setPointAt (int position, Vector point, Vector handle1, Vector handle2) |
Set point and handles at position. More... | |
void | addPoint (Vector point) |
Add point. More... | |
void | addPoint (Vector point, Vector handle1, Vector handle2) |
Add point with handles. More... | |
void | insertPoint (int position, Vector point) |
Insert point. More... | |
void | insertPoint (int position, Vector point, Vector handle1, Vector handle2) |
Insert point with handles. More... | |
void | removePointFrom (int position) |
Remove point from the given position. More... | |
void | removeAllPoints () |
Remove all points. More... | |
Vector | evaluateAt (int segment, float blend) |
Evaluate curve at segment position. More... | |
Vector | evaluateAt (float curveValue) |
Evaluate curve using curve value. More... | |
3D Bezier curve.
This is a native class.
void Dragengine.Scenery.CurveBezier3D.addPoint | ( | Vector | point | ) |
Add point.
Set both handles to point.
Add point with handles.
Vector Dragengine.Scenery.CurveBezier3D.evaluateAt | ( | float | curveValue | ) |
Evaluate curve using curve value.
Curve value composes of segment as integral part and blend factor as fractional part.
Vector Dragengine.Scenery.CurveBezier3D.evaluateAt | ( | int | segment, |
float | blend | ||
) |
Evaluate curve at segment position.
Vector Dragengine.Scenery.CurveBezier3D.getHandle1At | ( | int | position | ) |
First handle at position.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount()-1. |
Vector Dragengine.Scenery.CurveBezier3D.getHandle2At | ( | int | position | ) |
Second handle at position.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount()-1. |
Vector Dragengine.Scenery.CurveBezier3D.getPointAt | ( | int | position | ) |
Point at position.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount()-1. |
int Dragengine.Scenery.CurveBezier3D.getPointCount | ( | ) |
Number of points.
void Dragengine.Scenery.CurveBezier3D.insertPoint | ( | int | position, |
Vector | point | ||
) |
Insert point.
Set both handles to point.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount(). |
void Dragengine.Scenery.CurveBezier3D.insertPoint | ( | int | position, |
Vector | point, | ||
Vector | handle1, | ||
Vector | handle2 | ||
) |
Insert point with handles.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount(). |
CurveBezier3D Dragengine.Scenery.CurveBezier3D.new | ( | ) |
Create bezier curve.
CurveBezier3D Dragengine.Scenery.CurveBezier3D.new | ( | CurveBezier3D | copy | ) |
Create copy of bezier curve.
void Dragengine.Scenery.CurveBezier3D.removeAllPoints | ( | ) |
Remove all points.
void Dragengine.Scenery.CurveBezier3D.removePointFrom | ( | int | position | ) |
Remove point from the given position.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount()-1. |
void Dragengine.Scenery.CurveBezier3D.setPointAt | ( | int | position, |
Vector | point | ||
) |
Set point at position.
Set both handles to point.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount()-1. |
void Dragengine.Scenery.CurveBezier3D.setPointAt | ( | int | position, |
Vector | point, | ||
Vector | handle1, | ||
Vector | handle2 | ||
) |
Set point and handles at position.
EInvalidParam | position is less than 0. |
EInvalidParam | position is larger or equal to getPointCount()-1. |