LineCurve 折线

—> Curve

2D折线:线段.

function LineCurve( v1, v2 ) { } var v1 = new THREE.Vector2(-4, 4), v2 = new THREE.Vector2(4, -4); var curve = new THREE.LineCurve(v1, v2), points = curve.getPoints(1); 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 : 'LineCurve'
Description : 类型.

v1 : Vector2

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

v2 : Vector2

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

isLineCurve : Boolean

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