瀏覽代碼

Sphere: clean up (#24704)

WestLangley 2 年之前
父節點
當前提交
ebf88fac8a
共有 1 個文件被更改,包括 5 次插入3 次删除
  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;
 
 		}