Browse Source

Sphere: clean up (#24704)

WestLangley 2 years ago
parent
commit
ebf88fac8a
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/math/Sphere.js

+ 5 - 3
src/math/Sphere.js

@@ -165,7 +165,8 @@ class Sphere {
 
 			this.center.copy( point );
 			this.radius = 0;
-			return;
+
+			return this;
 
 		}
 
@@ -198,12 +199,13 @@ class Sphere {
 		// handle empty sphere cases
 		if ( sphere.isEmpty() ) {
 
-			return;
+			return this;
 
 		} else if ( this.isEmpty() ) {
 
 			this.copy( sphere );
-			return;
+
+			return this;
 
 		}