aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/javax/media/j3d/BoundingBox.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/classes/share/javax/media/j3d/BoundingBox.java b/src/classes/share/javax/media/j3d/BoundingBox.java
index bd2e134..86cadd3 100644
--- a/src/classes/share/javax/media/j3d/BoundingBox.java
+++ b/src/classes/share/javax/media/j3d/BoundingBox.java
@@ -1877,7 +1877,7 @@ private void setInfiniteBounds() {
return;
}
- if (checkBoundsIsNaN()) {
+ if (Double.isNaN(lower.x + lower.y + lower.z + upper.x + upper.y + upper.z)) {
boundsIsEmpty = true;
boundsIsInfinite = false;
return;
@@ -1950,16 +1950,6 @@ private void setInfiniteBounds() {
}
}
- // Check is any of the bounds is a NaN, if yes, then
- // set it an empty bounds
- boolean checkBoundsIsNaN() {
- if (Double.isNaN(lower.x+lower.y+lower.z+upper.x+upper.y+upper.z)) {
- return true;
- }
-
- return false;
- }
-
int getPickType() {
return PickShape.PICKBOUNDINGBOX;
}