Spline

Inherited: None

Description

Public Methods

bool

closed () const

void

insertPoint (int index, const Spline::Point & point)

Spline::Point

point (int index) const

int

pointsCount () const

void

removePoint (int index)

void

setClosed (bool closed)

void

setPoint (int index, const Spline::Point & point)

Vector3

value (float position)

Static Methods

None

Methods Description

bool Spline::closed () const

Returns true if is the spline is closed; otherwise false.

See also setClosed().


void Spline::insertPoint (int index, Spline::Point & point)

Inserts a point at the given index.


Spline::Point Spline::point (int index) const

Returns the point at the given index.

See also setPoint().


int Spline::pointsCount () const

Returns the number of points in the spline.


void Spline::removePoint (int index)

Removes the point at the given index.


void Spline::setClosed (bool closed)

Sets whether the spline is closed.

See also closed().


void Spline::setPoint (int index, Spline::Point & point)

Sets the point at the given index.

See also point().


Vector3 Spline::value (float position)

Returns the value of the spline at the given normalized position.