Browse Source

Moved Plane legacy code.

Mr.doob 9 years ago
parent
commit
a943535a54
2 changed files with 10 additions and 9 deletions
  1. 10 1
      src/Three.Legacy.js
  2. 0 8
      src/math/Plane.js

+ 10 - 1
src/Three.Legacy.js

@@ -110,7 +110,16 @@ Object.defineProperties( THREE.Matrix4.prototype, {
 		value: function ( axis, angle ) {
 			console.error( 'THREE.Matrix4: .rotateByAxis() has been removed.' );
 		}
-	}	
+	}
+} );
+
+Object.defineProperties( THREE.Plane.prototype, {
+	isIntersectionLine: {
+		value: function ( line ) {
+			console.warn( 'THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().' );
+			return this.intersectsLine( line );
+		}
+	}
 } );
 
 //

+ 0 - 8
src/math/Plane.js

@@ -173,14 +173,6 @@ THREE.Plane.prototype = {
 
 	},
 
-	isIntersectionLine: function ( line ) {
-
-		console.warn( 'THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().' );
-
-		return this.intersectsLine( line );
-
-	},
-
 	intersectsBox: function ( box ) {
 
 		return box.intersectsPlane( this );