Browse Source

Sphere: Clean up.

Mr.doob 9 years ago
parent
commit
1e413bd1c3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/math/Sphere.js

+ 2 - 1
src/math/Sphere.js

@@ -114,7 +114,7 @@ THREE.Sphere.prototype = {
 		// If this distance is greater than the radius of the sphere,
 		// If this distance is greater than the radius of the sphere,
 		// then there is no intersection.
 		// then there is no intersection.
 
 
-		return ( Math.abs( ( this.center.dot( plane.normal ) - plane.constant ) ) <= this.radius );
+		return Math.abs( this.center.dot( plane.normal ) - plane.constant ) <= this.radius;
 
 
 	},
 	},
 
 
@@ -123,6 +123,7 @@ THREE.Sphere.prototype = {
 		var deltaLengthSq = this.center.distanceToSquared( point );
 		var deltaLengthSq = this.center.distanceToSquared( point );
 
 
 		var result = optionalTarget || new THREE.Vector3();
 		var result = optionalTarget || new THREE.Vector3();
+
 		result.copy( point );
 		result.copy( point );
 
 
 		if ( deltaLengthSq > ( this.radius * this.radius ) ) {
 		if ( deltaLengthSq > ( this.radius * this.radius ) ) {