SimpleSpline
From oWiki
Contents |
Attributes
count
int ( r )
Gets the number of control points in the spline.
Methods
point( n )
n: int
Return: Vector3
| Gets the detail of one of the control points of the spline at the given index n. |
addPoint( v )
v: Vector3
| Adds a control point to the end of the spline. |
updatePoint( n, v )
n: int
v: Vector3
| Update the control point at index n. |
clear()
| Clears all the points in the spline. |
interpolate( t )
t: float
Return: Vector3
| Returns an interpolated point based on a parametric value t over the whole series. |
interpolateFrom( n, t )
n: int
v: Vector3
Return: Vector3
| Interpolates a single segment of the spline given a parametric value. |
recalcTangents()
| Recalculates the tangents associated with this spline. |
setAutoCalculate( b )
b: bool
| Tells the spline whether it should automatically calculate tangents on demand as points are added. |
