Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2024
1 parent 94b2e19 commit 858256b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ float pseudoArcTan2(const float y, const float x)
if (x >= 0.0f) return angle; // 1st zone
return M_PIf - angle; // 2nd zone
} else {
if (x >= 0.0f) return M_2PIf -angle; // 4th zone
return M_PIf + angle; // 3rd zone
if (x >= 0.0f) return M_2PIf - angle; // 4th zone
return M_PIf + angle; // 3rd zone
}
} else {
const float ratio = x_abs / y_abs;
Expand Down Expand Up @@ -336,8 +336,7 @@ class Grid
// set divider
const float radius = grid_radial_boundaries_[i];
const int divider_next = std::ceil(grid_linearity_switch_radius_ / radius);
if (divider_next % divider == 0
&& max_azimuth_grid_num % divider_next == 0) {
if (divider_next % divider == 0 && max_azimuth_grid_num % divider_next == 0) {
divider = divider_next;
}
// set azimuth grid number
Expand Down

0 comments on commit 858256b

Please sign in to comment.