diff options
author | Harvey Harrison <[email protected]> | 2012-01-15 16:52:53 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-01-15 16:52:53 -0800 |
commit | 628cf06f39639a71e374a2892a4c49195af35c27 (patch) | |
tree | f40fe7279afaefad101018a3c1a1774b25f90319 /src/classes/share | |
parent | 979ab971d7fdea92fd1908f0cce64c28117e19cf (diff) |
j3dcore: inline NaN test into its one caller in BoundingSphere
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/BoundingSphere.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/classes/share/javax/media/j3d/BoundingSphere.java b/src/classes/share/javax/media/j3d/BoundingSphere.java index 2f10b9e..18b4e3c 100644 --- a/src/classes/share/javax/media/j3d/BoundingSphere.java +++ b/src/classes/share/javax/media/j3d/BoundingSphere.java @@ -1688,7 +1688,7 @@ private void setInfiniteBounds() { private void updateBoundsStates() { - if (checkBoundsIsNaN()) { + if (Double.isNaN(radius + center.x + center.y + center.z)) { boundsIsEmpty = true; boundsIsInfinite = false; return; @@ -1733,13 +1733,6 @@ private void setInfiniteBounds() { } } - boolean checkBoundsIsNaN() { - if (Double.isNaN(radius+center.x+center.y+center.z)) { - return true; - } - return false; - } - int getPickType() { return PickShape.PICKBOUNDINGSPHERE; } |