[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

.[page:array actions]

The possible actions that define the path.

Methods

.fromPoints ( vectors )

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

.moveTo ( x, y )

This moves the offset to x and y

.lineTo ( x, y )

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

.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.

.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

.arc ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise )

todo

.absarc ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise )

todo

.ellipse ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise )

todo

.absellipse ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise )

todo

.toShapes ()

todo

Source

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