An extensible curve object which contains methods for interpolation class Curve<T extends Vector>
Get total curve arc length
number
Get list of cumulative segment lengths
Array<number>
Returns a vector for point at relative position in curve according to arc length getPointAt(u: number): T;
Get sequence of points using getPoint( t ) getPoints(divisions?: number): T[];
Vector[]
Get sequence of equi-spaced points using getPointAt( u ) getSpacedPoints(divisions?: number): T[];
Vector[]
Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation getTangent(t: number): T;
Returns tangent at equidistance point u on the curve getTangentAt(u: number): T;
Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equi distance
number
Update the cumlative segment distance cache