Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyajohnson committed Jul 13, 2023
1 parent 9142574 commit 765adac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ private int findSingleHit(double target) {
// edge cases: outside first interval
double firstCoord1 = axis.getCoordEdge1(0);
double firstCoord2 = axis.getCoordEdge2(0);
if ((axis.isAscending() && target < Math.min(firstCoord1, firstCoord2)) || (!axis.isAscending() && target > Math.max(firstCoord1, firstCoord2))) {
if ((axis.isAscending() && target < Math.min(firstCoord1, firstCoord2))
|| (!axis.isAscending() && target > Math.max(firstCoord1, firstCoord2))) {
return -1;
}
int idxFound = -1;
Expand Down

0 comments on commit 765adac

Please sign in to comment.