aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-01-15 16:52:53 -0800
committerHarvey Harrison <[email protected]>2012-01-15 16:52:53 -0800
commit628cf06f39639a71e374a2892a4c49195af35c27 (patch)
treef40fe7279afaefad101018a3c1a1774b25f90319 /src/classes/share
parent979ab971d7fdea92fd1908f0cce64c28117e19cf (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.java9
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;
}