Skip to content

Commit

Permalink
BoundingSphere: add comments to emphasize the treatment of checkPlane
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed May 4, 2024
1 parent 8d6a21a commit 94b52ef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ public boolean equals(Object other) {
} else if (!center.equals(otherBoundingSphere.getCenter())) {
return false;
}
// The checkPlane field is ignored.
return true;
}

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

return hash;
}
Expand All @@ -711,7 +713,7 @@ public boolean isSimilar(BoundingSphere sphere, float epsilon) {
} else if (!center.isSimilar(sphere.getCenter(), epsilon)) {
return false;
}

// The checkPlane field is ignored.
return true;
}

Expand Down

0 comments on commit 94b52ef

Please sign in to comment.