MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / Intersects

Method Intersects

include/util/rectangle.hpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 bool Intersects(const RectangleInt2D &other) const
68 {
69 // Standard box intersection test - check if boxes *don't* overlap,
70 // and return the negative of that
71 return !(max_lon < other.min_lon || min_lon > other.max_lon || max_lat < other.min_lat ||
72 min_lat > other.max_lat);
73 }
74
75 // This code assumes that we are operating in euclidean space!
76 // That means if you just put unprojected lat/lon in here you will

Callers 1

SearchInBoxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected