Curve

CurvePath

An abstract base class extending Curve. A CurvePath is simply an array of connected curves, but retains the api of a curve.

Constructor

CurvePath()

The constructor take no parameters.

Properties

See the base Curve class for common properties.

.curves : array

The array of Curves.

.autoClose : boolean

Whether or not to automatically close the path.

Methods

See the base Curve class for common methods.

.add (curve : Curve) : null

Add a curve to the .curves array.

.closePath () : null

Adds a lineCurve to close the path.

.getCurveLengths () : Float

Adds together the lengths of the curves in the .curves array.

Source

For more info on how to obtain the source code of this module see this page.