source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/src/extras/curves/LineCurve3.js@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 404 bytes
Line 
1/**************************************************************
2 * Line3D
3 **************************************************************/
4
5THREE.LineCurve3 = THREE.Curve.create(
6
7 function ( v1, v2 ) {
8
9 this.v1 = v1;
10 this.v2 = v2;
11
12 },
13
14 function ( t ) {
15
16 var r = new THREE.Vector3();
17
18
19 r.subVectors( this.v2, this.v1 ); // diff
20 r.multiplyScalar( t );
21 r.add( this.v1 );
22
23 return r;
24
25 }
26
27);
Note: See TracBrowser for help on using the repository browser.