SplCtrlPts

Engine/source/math/mSplinePatch.h

Class for spline control points.

More...

Private Attributes

Vector of points in the spline.

Public Functions

addPoint(Point3F & point)

Adds a point to the end of the spline.

Gets the number of points in the spline.

getPoint(U32 pointNum)

Gets the point at the given index.

setPoint(Point3F & point, U32 pointNum)

Sets a point at the given index to the point given.

submitPoints(Point3F * pts, U32 num)

Clears existing points and enters new points.

Detailed Description

Class for spline control points.

Private Attributes

Vector< Point3F > mPoints 

Vector of points in the spline.

Public Functions

SplCtrlPts()

~SplCtrlPts()

addPoint(Point3F & point)

Adds a point to the end of the spline.

Parameters:

point

New point to be added

getNumPoints()

Gets the number of points in the spline.

getPoint(U32 pointNum)

Gets the point at the given index.

Parameters:

pointNum

index of the point in question

setPoint(Point3F & point, U32 pointNum)

Sets a point at the given index to the point given.

Parameters:

point

New value for the given point

pointNum

index of the given point

submitPoints(Point3F * pts, U32 num)

Clears existing points and enters new points.

Parameters:

pts

List of points to be added

num

Number of points to be added