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

Method CalcSize

src/extractor/raster_source.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29float RasterSource::CalcSize(int min, int max, std::size_t count)
30{
31 BOOST_ASSERT(count > 0);
32 return (max - min) / (static_cast<float>(count) - 1);
33}
34
35// Query raster source for nearest data point
36RasterDatum RasterSource::GetRasterData(const int lon, const int lat) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected