aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-01-14 21:07:26 -0800
committerHarvey Harrison <[email protected]>2012-01-14 21:07:26 -0800
commite2941afa34007b730f6e868af0bac404d5653393 (patch)
treecdfb77fd9405641998da2029bf121bf4ef5e5690 /src/classes/share
parent545439b2fcf4804bb73c83f835d2680eb0ea3c9a (diff)
j3dcore: inline NaN-checks in BoundingBox::updateBoundsStates which should be the only user
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-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;
}