#include <CCPUSimpleSpline.h>
void addPoint 
( 
const Vec3 & 
p  ) 

Adds a control point to the end of the spline.
Adds a control point to the end of the spline.
local addPoint 
( 
local 
p  ) 

Adds a control point to the end of the spline.
Clears all the points in the spline.
Clears all the points in the spline.
Clears all the points in the spline.
unsigned short getNumPoints 
( 
void 
 ) 
const 
Gets the number of control points in the spline.
Gets the number of control points in the spline.
Gets the number of control points in the spline.
const Vec3& getPoint 
( 
unsigned short 
index  ) 
const 
Gets the detail of one of the control points of the spline.
var getPoint 
( 
var 
index  ) 

Gets the detail of one of the control points of the spline.
local getPoint 
( 
local 
index  ) 

Gets the detail of one of the control points of the spline.
Vec3 interpolate 
( 
float 
t  ) 
const 
Returns an interpolated point based on a parametric value over the whole series.
 Parameters

Returns an interpolated point based on a parametric value over the whole series.
 Parameters

local interpolate 
( 
local 
t  ) 

Returns an interpolated point based on a parametric value over the whole series.
 Parameters

Vec3 interpolate 
( 
unsigned int 
fromIndex, 


float 
t 

) 
 const 
Interpolates a single segment of the spline given a parametric value.
 Parameters

fromIndex  The point index to treat as t=0. fromIndex + 1 is deemed to be t=1 
t  Parametric value 
var interpolate 
( 
var 
fromIndex, 


var 
t 

) 
 
Interpolates a single segment of the spline given a parametric value.
 Parameters

fromIndex  The point index to treat as t=0. fromIndex + 1 is deemed to be t=1 
t  Parametric value 
local interpolate 
( 
local 
fromIndex, 


local 
t 

) 
 
Interpolates a single segment of the spline given a parametric value.
 Parameters

fromIndex  The point index to treat as t=0. fromIndex + 1 is deemed to be t=1 
t  Parametric value 
void recalcTangents 
( 
void 
 ) 

Recalculates the tangents associated with this spline.
Recalculates the tangents associated with this spline.
Recalculates the tangents associated with this spline.
void setAutoCalculate 
( 
bool 
autoCalc  ) 

Tells the spline whether it should automatically calculate tangents on demand as points are added.
 Parameters

autoCalc  If true, tangents are calculated for you whenever a point changes. If false, you must call reclacTangents to recalculate them when it best suits. 
var setAutoCalculate 
( 
var 
autoCalc  ) 

Tells the spline whether it should automatically calculate tangents on demand as points are added.
 Parameters

autoCalc  If true, tangents are calculated for you whenever a point changes. If false, you must call reclacTangents to recalculate them when it best suits. 
local setAutoCalculate 
( 
local 
autoCalc  ) 

Tells the spline whether it should automatically calculate tangents on demand as points are added.
 Parameters

autoCalc  If true, tangents are calculated for you whenever a point changes. If false, you must call reclacTangents to recalculate them when it best suits. 
void updatePoint 
( 
unsigned short 
index, 


const Vec3 & 
value 

) 
 
Updates a single point in the spline.
var updatePoint 
( 
var 
index, 


var 
value 

) 
 
Updates a single point in the spline.
local updatePoint 
( 
local 
index, 


local 
value 

) 
 
Updates a single point in the spline.
std::vector<Vec3> _points 

protected 
std::vector<Vec3> _tangents 

protected 
The documentation for this class was generated from the following file: