|
@@ -279,14 +279,6 @@ THREE.Ray.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
- isIntersectionSphere: function ( sphere ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
|
-
|
|
|
- return this.intersectsSphere( sphere );
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
distanceToPlane: function ( plane ) {
|
|
|
|
|
|
var denominator = plane.normal.dot( this.direction );
|
|
@@ -356,14 +348,6 @@ THREE.Ray.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
- isIntersectionPlane: function ( plane ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().' );
|
|
|
-
|
|
|
- return this.intersectsPlane( plane );
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
intersectBox: function ( box, optionalTarget ) {
|
|
|
|
|
|
// http://www.scratchapixel.com/lessons/3d-basic-lessons/lesson-7-intersecting-simple-shapes/ray-box-intersection/
|
|
@@ -447,14 +431,6 @@ THREE.Ray.prototype = {
|
|
|
|
|
|
} )(),
|
|
|
|
|
|
- isIntersectionBox: function ( box ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
-
|
|
|
- return this.intersectsBox( box );
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
intersectTriangle: function () {
|
|
|
|
|
|
// Compute the offset origin, edges, and normal.
|