MCPcopy Create free account
hub / github.com/comaps/comaps / Between

Function Between

libs/geometry/robust_orientation.hpp:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename T>
26bool Between(T a, T b, T c)
27{
28 return std::min(a, b) <= c && c <= std::max(a, b);
29}
30
31template <typename Point>
32bool IsInSection(Point const & p1, Point const & p2, Point const & p)

Callers 6

IsInSectionFunction · 0.70
ValidLonFunction · 0.70
ValidLatFunction · 0.70
ValidXFunction · 0.70
ValidYFunction · 0.70
check_set_from_rectFunction · 0.50

Calls

no outgoing calls

Tested by 1

check_set_from_rectFunction · 0.40