Curve

QuadraticBezierCurve

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

QuadraticBezierCurve( v0, v1, v2 )

v0 – The starting point
v1 – The middle control point
v2 – The ending point

Properties

.v0

.v1

.v2

Methods

See Curve for inherited methods

Source

src/extras/curves/QuadraticBezierCurve.js
Edit