Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update based on review

  • Loading branch information...
commit 0c4f93132426606e3bbe6231ac559268c3c945d6 1 parent e46e37a
@pjcozzi pjcozzi authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 Source/Core/BoundingSphere.js
View
6 Source/Core/BoundingSphere.js
@@ -509,10 +509,8 @@ define([
result = new BoundingSphere();
}
- var center = Cartesian3.add(corner, oppositeCorner);
- Cartesian3.multiplyByScalar(center, 0.5, center);
-
- result.center = center;
+ Cartesian3.add(corner, oppositeCorner, result.center);
+ Cartesian3.multiplyByScalar(result.center, 0.5, result.center);
result.radius = Cartesian3.distance(center, oppositeCorner);
return result;
};
Please sign in to comment.
Something went wrong with that request. Please try again.