[page:CurvePath] →

[name]

A 2d path representation, comprising of points, lines, and cubes, similar to the html5 2d canvas api. It extends CurvePath.

Constructor

[name]([page:todo points])

points -- array of Vector2
Creates a Path from the points. The first vector defines the offset. After that the lines get defined.

Properties

[property:array actions]

The possible actions that define the path.

Methods

[method:todo fromPoints]( vectors )

Adds to the Path from the points. The first vector defines the offset. After that the lines get defined.

[method:todo moveTo]( x, y )

This moves the offset to x and y

[method:todo lineTo]( x, y )

This creates a line from the offset to X and Y and updates the offset to X and Y.

[method:todo quadraticCurveTo]( aCPx, aCPy, aX, aY )

This creates a quadratic curve from the offset to aX and aY with aCPx and aCPy as control point and updates the offset to aX and aY.

[method:todo bezierCurveTo]( aCP1x, aCP1y, aCP2x, aCP2y, aX, aY )

This creates a bezier curve from the offset to aX and aY with aCP1x, aCP1y and aCP1x, aCP1y as control points and updates the offset to aX and aY.

.splineThru ( pts /*Array of Vector*/ )

todo

[method:todo arc]( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise )

todo

[method:todo absarc]( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise )

todo

[method:todo ellipse]( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise )

todo

[method:todo absellipse]( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise )

todo

[method:todo toShapes]()

todo

Source

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