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

Function normalize

unit_tests/extractor/raster_source.cpp:16–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace osrm::extractor;
15
16int normalize(double coord) { return static_cast<int>(coord * COORDINATE_PRECISION); }
17
18#define CHECK_QUERY(source_id, lon, lat, expected) \
19 BOOST_CHECK_EQUAL(sources.GetRasterDataFromSource(source_id, lon, lat).datum, expected)

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected