mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-01 20:42:10 +00:00
[extensions][sections] Use raw comparison operators instead of math:: functions.
This commit is contained in:
@@ -41,15 +41,15 @@ namespace detail
|
||||
template <size_t D, typename P, typename B>
|
||||
inline bool exceeding(short int dir, P const& point, B const& box)
|
||||
{
|
||||
return (dir == 1 && math::larger(get<D>(point), get<1, D>(box)))
|
||||
|| (dir == -1 && math::smaller(get<D>(point), get<0, D>(box)));
|
||||
return (dir == 1 && get<D>(point) > get<1, D>(box))
|
||||
|| (dir == -1 && get<D>(point) < get<0, D>(box));
|
||||
}
|
||||
|
||||
template <size_t D, typename P, typename B>
|
||||
inline bool preceding(short int dir, P const& point, B const& box)
|
||||
{
|
||||
return (dir == 1 && math::smaller(get<D>(point), get<0, D>(box)))
|
||||
|| (dir == -1 && math::larger(get<D>(point), get<1, D>(box)));
|
||||
return (dir == 1 && get<D>(point) < get<0, D>(box))
|
||||
|| (dir == -1 && get<D>(point) > get<0, D>(box));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user