Skip to content

Commit

Permalink
std::abs
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Dec 18, 2024
1 parent 5ff93a4 commit ae9e432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/Surfaces/ConeBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void ConeBounds::checkConsistency() noexcept(false) {
std::abs(get(eMinZ) - get(eMaxZ)) < s_epsilon) {
throw std::invalid_argument("ConeBounds: invalid z range setup.");
}
if (get(eHalfPhiSector) < 0. || abs(eHalfPhiSector) > std::numbers::pi) {
if (get(eHalfPhiSector) < 0. || std::abs(eHalfPhiSector) > std::numbers::pi) {
throw std::invalid_argument("ConeBounds: invalid phi sector setup.");
}
if (get(eAveragePhi) != detail::radian_sym(get(eAveragePhi))) {
Expand Down

0 comments on commit ae9e432

Please sign in to comment.