An abstract base class extending Curve. A CurvePath is simply an array of connected curves, but retains the api of a curve.
The constructor take no parameters.
See the base Curve class for common properties.
The array of Curves.
Whether or not to automatically close the path.
See the base Curve class for common methods.
Add a curve to the .curves array.
Adds a lineCurve to close the path.
Get list of cumulative curve lengths of the curves in the .curves array.
t - A position on the curve. Must be in the range [0, 1].
Returns a vector for a given position on the curve path.
divisions -- number of pieces to divide the curve into. Default is 12.
Returns an array of points representing a sequence of curves. The division parameter defines the number of pieces each curve is divided into. However, for optimization and quality purposes, the actual sampling resolution for each curve depends on its type. For example, for a LineCurve, the returned number of points is always just 2.
divisions -- number of pieces to divide the curve into. Default is 40.
Returns a set of divisions + 1 equi-spaced points using getPointAt(u).
For more info on how to obtain the source code of this module see this page.