Skip to content

Commit 94b52ef

Browse files
committed
BoundingSphere: add comments to emphasize the treatment of checkPlane
1 parent 8d6a21a commit 94b52ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ public boolean equals(Object other) {
676676
} else if (!center.equals(otherBoundingSphere.getCenter())) {
677677
return false;
678678
}
679+
// The checkPlane field is ignored.
679680
return true;
680681
}
681682

@@ -690,6 +691,7 @@ public int hashCode() {
690691
int hash = 3;
691692
hash = 59 * hash + Float.floatToIntBits(radius);
692693
hash = 59 * hash + center.hashCode();
694+
// The checkPlane field is ignored.
693695

694696
return hash;
695697
}
@@ -711,7 +713,7 @@ public boolean isSimilar(BoundingSphere sphere, float epsilon) {
711713
} else if (!center.isSimilar(sphere.getCenter(), epsilon)) {
712714
return false;
713715
}
714-
716+
// The checkPlane field is ignored.
715717
return true;
716718
}
717719

0 commit comments

Comments
 (0)