Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.CurveBezier3D Class Reference

3D Bezier curve. More...

Inheritance diagram for Dragengine.Scenery.CurveBezier3D:

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...
 

Detailed Description

3D Bezier curve.

This is a native class.

Member Function Documentation

◆ 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 
)

Add point with handles.

◆ 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
EInvalidParamposition is less than 0.
EInvalidParamposition is larger or equal to getPointCount()-1.

◆ getHandle2At()

Vector Dragengine.Scenery.CurveBezier3D.getHandle2At ( int  position)

Second handle at position.

Exceptions
EInvalidParamposition is less than 0.
EInvalidParamposition is larger or equal to getPointCount()-1.

◆ getPointAt()

Vector Dragengine.Scenery.CurveBezier3D.getPointAt ( int  position)

Point at position.

Exceptions
EInvalidParamposition is less than 0.
EInvalidParamposition is larger or equal to getPointCount()-1.

◆ getPointCount()

int Dragengine.Scenery.CurveBezier3D.getPointCount ( )

Number of points.

◆ insertPoint() [1/2]

void Dragengine.Scenery.CurveBezier3D.insertPoint ( int  position,
Vector  point 
)

Insert point.

Set both handles to point.

Exceptions
EInvalidParamposition is less than 0.
EInvalidParamposition 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
EInvalidParamposition is less than 0.
EInvalidParamposition is larger or equal to getPointCount().

◆ new() [1/2]

CurveBezier3D Dragengine.Scenery.CurveBezier3D.new ( )

Create bezier curve.

◆ new() [2/2]

CurveBezier3D Dragengine.Scenery.CurveBezier3D.new ( CurveBezier3D  copy)

Create copy of bezier curve.

◆ removeAllPoints()

void Dragengine.Scenery.CurveBezier3D.removeAllPoints ( )

Remove all points.

◆ removePointFrom()

void Dragengine.Scenery.CurveBezier3D.removePointFrom ( int  position)

Remove point from the given position.

Exceptions
EInvalidParamposition is less than 0.
EInvalidParamposition is larger or equal to getPointCount()-1.

◆ setPointAt() [1/2]

void Dragengine.Scenery.CurveBezier3D.setPointAt ( int  position,
Vector  point 
)

Set point at position.

Set both handles to point.

Exceptions
EInvalidParamposition is less than 0.
EInvalidParamposition 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
EInvalidParamposition is less than 0.
EInvalidParamposition is larger or equal to getPointCount()-1.

The documentation for this class was generated from the following file: