Drag[en]gine Script Module DragonScript Script API  1.0
CurveBezier3D Class Reference

3D Bezier curve. More...

Inheritance diagram for 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.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addPoint() [1/2]

void addPoint ( Vector  point)

Add point.

Set both handles to point.

§ addPoint() [2/2]

void addPoint ( Vector  point,
Vector  handle1,
Vector  handle2 
)

Add point with handles.

§ evaluateAt() [1/2]

Vector evaluateAt ( int  segment,
float  blend 
)

Evaluate curve at segment position.

§ evaluateAt() [2/2]

Vector evaluateAt ( float  curveValue)

Evaluate curve using curve value.

Curve value composes of segment as integral part and blend factor as fractional part.

§ getHandle1At()

Vector getHandle1At ( int  position)

First handle at position.

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

§ getHandle2At()

Vector getHandle2At ( int  position)

Second handle at position.

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

§ getPointAt()

Vector getPointAt ( int  position)

Point at position.

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

§ getPointCount()

int getPointCount ( )

Number of points.

§ insertPoint() [1/2]

void 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 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 new ( )

Create bezier curve.

§ new() [2/2]

Create copy of bezier curve.

§ removeAllPoints()

void removeAllPoints ( )

Remove all points.

§ removePointFrom()

void 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 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 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: