[page:Curve] →

[name]

Create a smooth 2d quadratic bezier curve.

Example

var curve = new THREE.QuadraticBezierCurve( new THREE.Vector3( -10, 0, 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 v0] – The starting point
[page:Vector2 v1] – The middle control point
[page:Vector2 v2] – The ending point

Properties

[property:Vector2 v0]

[property:Vector2 v1]

[property:Vector2 v2]

Methods

See [page:Curve] for inherited methods

Source

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