[name]

An abstract base class for creating a curve object that contains methods for interpolation. For an array of Curves see [page:CurvePath].

Examples

[example:webgl_geometry_extrude_splines geometry / extrude / splines ]

Constructor

[name]()

This constructor creates a new [name].

Methods

[method:Vector getPoint]( [page:Number t] )

Returns a vector for point t of the curve where t is between 0 and 1. Must be implemented in the extending class.

[method:Vector getPointAt]( [page:Number u] )

Returns a vector for point at a relative position in curve according to arc length. u is in the range [0, 1].

[method:Array getPoints]( [page:integer divisions] )

divisions -- number of pieces to divide the curve into. Default is *5*.

Returns a set of divisions + 1 points using getPoint( t ).

[method:Array getSpacedPoints]( divisions )

divisions -- number of pieces to divide the curve into. Default is *5*.

Returns a set of divisions + 1 equi-spaced points using getPointAt( u ).

[method:Float getLength]()

Get total curve arc length.

[method:Array getLengths]( divisions )

Get list of cumulative segment lengths.

[method:null updateArcLengths]()

Update the cumlative segment distance cache.

[method:Float getUtoTmapping]( [page:Number u], distance )

Given u in the range ( 0 .. 1 ), returns [page:Number t] also in the range ( 0 .. 1 ). u and t can then be used to give you points which are equidistant from the ends of the curve, using [page:.getPoint].

[method:Vector getTangent]( [page:Number t] )

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

[method:Vector getTangentAt]( [page:Number u] )

Returns tangent at a point which is equidistant to the ends of the curve from the point given in [page:.getTangent].

[method:Object computeFrenetFrames]( segments, closed )

Generates the Frenet Frames. Used in geometries like [page:TubeGeometry] or [page:ExtrudeGeometry].

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]