Torque2D Reference

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

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

Public Member Functions | List of all members
QuadPatch Class Reference

`#include <mQuadPatch.h>`

Inheritance diagram for QuadPatch:

## Public Member Functions
| QuadPatch ()
virtual void | calc (F32 t, Point3F &result)
virtual void | calc (Point3F *points, F32 t, Point3F &result)
virtual void | setControlPoint (Point3F &point, int index)
virtual void | submitControlPoints (SplCtrlPts &points)
Public Member Functions inherited from SplinePatch
| SplinePatch ()
U32 | getNumReqControlPoints ()
const SplCtrlPts * | getControlPoints ()
const Point3F * | getControlPoint (U32 index)

## Additional Inherited Members
Protected Member Functions inherited from SplinePatch
void | setNumReqControlPoints (U32 numPts)

## Detailed Description

Quadratic spline patch. This is a special type of spline that only had 3 control points.

See also
  SplinePatch

## Constructor & Destructor Documentation

QuadPatch | ( |  | ) |

## Member Function Documentation

void calc | ( | F32 | t,
|  | Point3F & | result
| ) |  |
| virtual

Recalc function. Do not call this ever - only SplineUtil needs this.

See also
  SplineUtil

Implements SplinePatch.

void calc | ( | Point3F * | points,
|  | F32 | t,
|  | Point3F & | result
| ) |  |
| virtual

Recalc function. Do not call this ever - only SplineUtil needs this.

See also
  SplineUtil

Implements SplinePatch.

void setControlPoint | ( | Point3F & | point,
|  | int | index
| ) |  |
| virtual

Reimplemented from SplinePatch.

void submitControlPoints | ( | SplCtrlPts & | points | ) |
| virtual

If you have a preconstructed "SplCtrlPts" class, submit it with this function.

See also
  SplCtrlPts

Reimplemented from SplinePatch.

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

- math/mQuadPatch.h
- math/mQuadPatch.cc