SplCtrlPts
Engine/source/math/mSplinePatch.h
Class for spline control points.
Public Functions
Gets the number of points in the spline.
submitPoints(Point3F * pts, U32 num)
Clears existing points and enters new points.
Detailed Description
Class for spline control points.
see:
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 |