3D Bezier curve.
More...
|
|
| CurveBezier3D | new () |
| | Create bezier curve.
|
| |
| CurveBezier3D | new (CurveBezier3D copy) |
| | Create copy of bezier curve.
|
| |
|
| int | getPointCount () |
| | Number of points.
|
| |
| Vector | getPointAt (int position) |
| | Point at position.
|
| |
| Vector | getHandle1At (int position) |
| | First handle at position.
|
| |
| Vector | getHandle2At (int position) |
| | Second handle at position.
|
| |
| void | setPointAt (int position, Vector point) |
| | Set point at position.
|
| |
| void | setPointAt (int position, Vector point, Vector handle1, Vector handle2) |
| | Set point and handles at position.
|
| |
| void | addPoint (Vector point) |
| | Add point.
|
| |
| void | addPoint (Vector point, Vector handle1, Vector handle2) |
| | Add point with handles.
|
| |
| void | insertPoint (int position, Vector point) |
| | Insert point.
|
| |
| void | insertPoint (int position, Vector point, Vector handle1, Vector handle2) |
| | Insert point with handles.
|
| |
| void | removePointFrom (int position) |
| | Remove point from the given position.
|
| |
| void | removeAllPoints () |
| | Remove all points.
|
| |
| CurveBezierInterpolation | getInterpolationMode () |
| | Interpolation mode.
|
| |
| void | setInterpolationMode (CurveBezierInterpolation mode) |
| | Set interpolation mode.
|
| |
| Vector | evaluateAt (int segment, float blend) |
| | Evaluate curve at segment position.
|
| |
| Vector | evaluateAt (float curveValue) |
| | Evaluate curve using curve value.
|
| |
3D Bezier curve.
This is a native class.
◆ addPoint() [1/2]
| void Dragengine.Scenery.CurveBezier3D.addPoint |
( |
Vector |
point | ) |
|
Add point.
Set both handles to point.
◆ addPoint() [2/2]
| void Dragengine.Scenery.CurveBezier3D.addPoint |
( |
Vector |
point, |
|
|
Vector |
handle1, |
|
|
Vector |
handle2 |
|
) |
| |
◆ evaluateAt() [1/2]
| 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.
◆ evaluateAt() [2/2]
| Vector Dragengine.Scenery.CurveBezier3D.evaluateAt |
( |
int |
segment, |
|
|
float |
blend |
|
) |
| |
Evaluate curve at segment position.
◆ getHandle1At()
| Vector Dragengine.Scenery.CurveBezier3D.getHandle1At |
( |
int |
position | ) |
|
First handle at position.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount()-1. |
◆ getHandle2At()
| Vector Dragengine.Scenery.CurveBezier3D.getHandle2At |
( |
int |
position | ) |
|
Second handle at position.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount()-1. |
◆ getInterpolationMode()
| CurveBezierInterpolation Dragengine.Scenery.CurveBezier3D.getInterpolationMode |
( |
| ) |
|
Interpolation mode.
- Version
- 1.26
◆ getPointAt()
| Vector Dragengine.Scenery.CurveBezier3D.getPointAt |
( |
int |
position | ) |
|
Point at position.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount()-1. |
◆ getPointCount()
| int Dragengine.Scenery.CurveBezier3D.getPointCount |
( |
| ) |
|
◆ insertPoint() [1/2]
| void Dragengine.Scenery.CurveBezier3D.insertPoint |
( |
int |
position, |
|
|
Vector |
point |
|
) |
| |
Insert point.
Set both handles to point.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount(). |
◆ insertPoint() [2/2]
| void Dragengine.Scenery.CurveBezier3D.insertPoint |
( |
int |
position, |
|
|
Vector |
point, |
|
|
Vector |
handle1, |
|
|
Vector |
handle2 |
|
) |
| |
Insert point with handles.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount(). |
◆ new() [1/2]
◆ new() [2/2]
Create copy of bezier curve.
◆ readFromFile()
Read curve from file reader.
- Version
- 1.26
◆ removeAllPoints()
| void Dragengine.Scenery.CurveBezier3D.removeAllPoints |
( |
| ) |
|
◆ removePointFrom()
| void Dragengine.Scenery.CurveBezier3D.removePointFrom |
( |
int |
position | ) |
|
Remove point from the given position.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount()-1. |
◆ setInterpolationMode()
| void Dragengine.Scenery.CurveBezier3D.setInterpolationMode |
( |
CurveBezierInterpolation |
mode | ) |
|
Set interpolation mode.
- Version
- 1.26
- Exceptions
-
| EInvalidParam | mode is not a valid value. |
◆ setPointAt() [1/2]
| void Dragengine.Scenery.CurveBezier3D.setPointAt |
( |
int |
position, |
|
|
Vector |
point |
|
) |
| |
Set point at position.
Set both handles to point.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount()-1. |
◆ setPointAt() [2/2]
| void Dragengine.Scenery.CurveBezier3D.setPointAt |
( |
int |
position, |
|
|
Vector |
point, |
|
|
Vector |
handle1, |
|
|
Vector |
handle2 |
|
) |
| |
Set point and handles at position.
- Exceptions
-
| EInvalidParam | position is less than 0. |
| EInvalidParam | position is larger or equal to getPointCount()-1. |
◆ writeToFile()
| void Dragengine.Scenery.CurveBezier3D.writeToFile |
( |
FileWriter |
writer | ) |
|
Write curve to file writer.
- Version
- 1.26
The documentation for this class was generated from the following file: