[page:Curve] →
[name]
Example
var curve = new THREE.CubicBezierCurve(
new THREE.Vector3( -10, 0, 0 ),
new THREE.Vector3( -5, 15, 0 ),
new THREE.Vector3( 20, 15, 0 ),
new THREE.Vector3( 10, 0, 0 )
);
var path = new THREE.Path( curve.getPoints( 50 ) );
var geometry = path.createPointsGeometry( 50 );
var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
// Create the final Object3d to add to the scene
var curveObject = new THREE.Line( geometry, material );
Constructor
[name] ( [page:Vector2 v0], [page:Vector2 v1], [page:Vector2 v2], [page:Vector2 v3] )
[page:Vector2 v0] – The starting point
[page:Vector2 v1] – The first control point
[page:Vector2 v2] – The second control point
[page:Vector2 v3] – The ending point
Properties
[property:Vector2 v0]
[property:Vector2 v1]
[property:Vector2 v2]
[property:Vector2 v3]
Methods
See [page:Curve] for inherited methods
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]