Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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 Point3F * | getPoint (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 | ( |  | ) |

~SplCtrlPts | ( |  | ) |
| virtual

## Member Function Documentation

void addPoint | ( | Point3F & | point | ) |

Adds a point to the end of the spline

Parameters

  point | New 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

  pointNum | index of the point in question

void 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

void 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

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

- math/mSplinePatch.h
- math/mSplinePatch.cc