[page:Curve] →

[name]

시작점, 종착점, 두 개의 조절점을 통해 매끄러운 3d 이차 베지에 곡선을 만듭니다.

코드 예제

const curve = new THREE.QuadraticBezierCurve3( new THREE.Vector3( -10, 0, 0 ), new THREE.Vector3( 20, 15, 0 ), new THREE.Vector3( 10, 0, 0 ) ); const points = curve.getPoints( 50 ); const geometry = new THREE.BufferGeometry().setFromPoints( points ); const material = new THREE.LineBasicMaterial( { color : 0xff0000 } ); // Create the final object to add to the scene const curveObject = new THREE.Line( geometry, material );

생성자

[name]( [param:Vector3 v0], [param:Vector3 v1], [param:Vector3 v2] )

[page:Vector3 v0] – 시작점입니다.
[page:Vector3 v1] – 중앙 조절점입니다.
[page:Vector3 v2] – 종착점입니다.

프로퍼티

일반 프로퍼티는 기본 [page:Curve] 클래스를 참고하세요.

[property:Vector3 v0]

시작점입니다.

[property:Vector3 v1]

조절점입니다.

[property:Vector3 v2]

종착점입니다.

메서드

일반 메서드는 기본 [page:Curve] 클래스를 참고하세요.

소스코드

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