Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Nov 14, 2023
1 parent b495cf3 commit e764326
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ public static PNPResult solvePNP_SQUARE(
// check if solvePnP failed with NaN results and retrying failed
if (Double.isNaN(errors[0])) throw new Exception("SolvePNP_SQUARE NaN result");

if (alt != null)
return new PNPResult(best, alt, errors[0] / errors[1], errors[0], errors[1]);
if (alt != null) return new PNPResult(best, alt, errors[0] / errors[1], errors[0], errors[1]);
else return new PNPResult(best, errors[0]);
}
// solvePnP failed
Expand Down

0 comments on commit e764326

Please sign in to comment.