提交 d2399c7b 编写于 作者: M Mr.doob

Box3: Reuse Sphere.center in getBoundingSphere(). See 5578c057

上级 4baf3e59
......@@ -394,7 +394,8 @@ Box3.prototype = {
var result = optionalTarget || new Sphere();
result.center = this.getCenter();
this.getCenter( result.center );
result.radius = this.size( v1 ).length() * 0.5;
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册