An extensible curve object which contains methods for interpolation
class Curve<T extends Vector>
Methods
public static create( constructorFunc: Function , getPointFunc: Function ) : Function
Defined in three.d.ts:4975
Parameters
constructorFunc: Function
getPointFunc: Function
Returns
Function
public getLength( ) : number
Defined in three.d.ts:4939
Get total curve arc length
Returns
number
public getLengths( divisions?: number ) : Array<number>
Defined in three.d.ts:4944
Get list of cumulative segment lengths
Parameters
divisions?: number optional
Returns
Array<number>
public getPoint( t: number ) : Vector
Defined in three.d.ts:4916
Returns a vector for point t of the curve where t is between 0 and 1
getPoint(t: number): T;
Parameters
Returns
Vector
public getPointAt( u: number ) : Vector
Defined in three.d.ts:4922
Returns a vector for point at relative position in curve according to arc length
getPointAt(u: number): T;
Parameters
Returns
Vector
public getPoints( divisions?: number ) : Vector []
Defined in three.d.ts:4928
Get sequence of points using getPoint( t )
getPoints(divisions?: number): T[];
Parameters
divisions?: number optional
Returns
Vector []
public getSpacedPoints( divisions?: number ) : Vector []
Defined in three.d.ts:4934
Get sequence of equi-spaced points using getPointAt( u )
getSpacedPoints(divisions?: number): T[];
Parameters
divisions?: number optional
Returns
Vector []
public getTangent( t: number ) : Vector
Defined in three.d.ts:4960
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;
Parameters
Returns
Vector
public getTangentAt( u: number ) : Vector
Defined in three.d.ts:4966
Returns tangent at equidistance point u on the curve
getTangentAt(u: number): T;
Parameters
Returns
Vector
public getUtoTmapping( u: number , distance: number ) : number
Defined in three.d.ts:4954
Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equi distance
Parameters
u: number
distance: number
Returns
number
public updateArcLengths( )
Defined in three.d.ts:4949
Update the cumlative segment distance cache