[page:Curve] →
[name]
Example
var curve = new v3d.QuadraticBezierCurve3(
new v3d.Vector3(-10, 0, 0),
new v3d.Vector3(20, 15, 0),
new v3d.Vector3(10, 0, 0)
);
var geometry = new v3d.Geometry();
geometry.vertices = curve.getPoints(50);
var material = new v3d.LineBasicMaterial({ color : 0xff0000 });
// Create the final object to add to the scene
var curveObject = new v3d.Line(geometry, material);
Constructor
[name]([page:Vector3 v0], [page:Vector3 v1], [page:Vector3 v2])
[page:Vector3 v0] – The starting point
[page:Vector3 v1] – The middle control point
[page:Vector3 v2] – The ending point
Properties
See the base [page:Curve] class for common properties.
[property:Vector3 v0]
The startpoint.
[property:Vector3 v1]
The control point.
[property:Vector3 v2]
The endpoint.
Methods
See the base [page:Curve] class for common methods.
[sourceHint]