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

Method Contains

include/util/rectangle.hpp:155–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 bool Contains(const Coordinate location) const
156 {
157 const bool lons_contained = (location.lon >= min_lon) && (location.lon <= max_lon);
158 const bool lats_contained = (location.lat >= min_lat) && (location.lat <= max_lat);
159 return lons_contained && lats_contained;
160 }
161
162 bool IsValid() const
163 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected