Torque2D Reference
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
SplCtrlPts Class Reference

#include <mSplinePatch.h>

Public Member Functions

 SplCtrlPts ()
 
virtual ~SplCtrlPts ()
 
U32 getNumPoints ()
 Gets the number of points in the spline. More...
 
const Point3FgetPoint (U32 pointNum)
 
void setPoint (Point3F &point, U32 pointNum)
 
void addPoint (Point3F &point)
 
void submitPoints (Point3F *pts, U32 num)
 

Detailed Description

Class for spline control points.

See Also
SplinePatch

Constructor & Destructor Documentation

~SplCtrlPts ( )
virtual

Member Function Documentation

void addPoint ( Point3F point)

Adds a point to the end of the spline

Parameters
pointNew point to be added
U32 getNumPoints ( )
inline

Gets the number of points in the spline.

const Point3F * getPoint ( U32  pointNum)

Gets the point at the given index

Parameters
pointNumindex of the point in question
void setPoint ( Point3F point,
U32  pointNum 
)

Sets a point at the given index to the point given

Parameters
pointNew value for the given point
pointNumindex of the given point
void submitPoints ( Point3F pts,
U32  num 
)

Clears existing points and enters new points

Parameters
ptsList of points to be added
numNumber of points to be added

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