Create a smooth 2d quadratic bezier curve, defined by a startpoint, endpoint and a single control point.
var curve = new THREE.QuadraticBezierCurve(
new THREE.Vector2( -10, 0 ),
new THREE.Vector2( 20, 15 ),
new THREE.Vector2( 10, 0 )
);
var points = curve.getPoints( 50 );
var geometry = new THREE.BufferGeometry().setFromPoints( points );
var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
//Create the final object to add to the scene
var curveObject = new THREE.Line( geometry, material );
[page:Vector2 v0] – The startpoint.
[page:Vector2 v1] – The control point.
[page:Vector2 v2] – The endpoint.
See the base [page:Curve] class for common properties.
Used to check whether this or derived classes are QuadraticBezierCurves. Default is *true*.
You should not change this, as it used internally for optimisation.
The startpoint.
The control point.
The endpoint.
See the base [page:Curve] class for common methods.
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]