QuadraticBezierCurve3 3D的二次贝塞尔曲线

—> Curve

3D的二次贝塞尔曲线. 有一个控制点, 即比 CubicBezierCurve3 少了一个控制点.

function QuadraticBezierCurve3( v0, v1, v2 ) { } var v1 = new THREE.Vector3(-3, 0, -3), v2 = new THREE.Vector3(1, 4, 0), v3 = new THREE.Vector3(3, 0, 3); var curve = new THREE.QuadraticBezierCurve3(v1, v2, v3), points = curve.getPoints(60); var geometry = new THREE.Geometry().setFromPoints(points), material = new THREE.LineBasicMaterial({ color: '#ff9900'}), line = new THREE.Line(geometry, material); scene.add(line);

Attributes

type : String

Default value : 'QuadraticBezierCurve'
Description : 类型

v0 : Vector3

Default value : new Vector3()
Description : 起点.

v1 : Vector3

Default value : new Vector3()
Description : 控制点.

v2 Vector3

Default value : new Vector3()
Description : 终点.

isQuadraticBezierCurve3 : Boolean

Default value : true
Description : 类型是否为 QuadraticBezierCurve3.