diff --git a/docs/api/core/Spline.html b/docs/api/core/Spline.html index 96da35435b48acb253da18af72a453ba211d7c51..9392f17b8b380cc8678490b134bdd6925d090589 100644 --- a/docs/api/core/Spline.html +++ b/docs/api/core/Spline.html @@ -14,7 +14,9 @@

Constructor

-

[name]()

+

[name]( [page:Array points] )

+ +
Initialises the spline with *points*, which are the places through which the spline will go.

Properties

@@ -24,11 +26,34 @@

Methods

-

.todo( [page:Vector3 todo] )

+

.initFromArray( [page:Array a] )

- todo — todo
+ a — array of triplets containing x, y, z coordinates
+
+
Initialises using the data in the array as a series of points. Each value in *a* must be another array with three values, where a[n] is v, the value for the *nth* point, and v[0], v[1] and v[2] are the x, y and z coordinates of that point n, respectively.
+

.getPoint( [page:Integer k] )

+
+ k — point index +
+
Return the interpolated point at *k*.
+ +

.getControlPointsArray( )

+
Returns an array with triplets of x, y, z coordinates that correspond to the current control points. +
+ +

.getLength( [page:Integer nSubDivisions] )

+
+ nSubDivisions — number of subdivisions between control points. Default is *100*. +
+
Returns the length of the spline when using nSubDivisions.
+ +

.reparametrizeByArcLength( [page:Float samplingCoef] )

+
+ samplingCoef — TODO +
+
TODO ???

Source