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

Function GetFakeVertex

libs/routing/routing_tests/fake_graph_test.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28FakeVertex GetFakeVertex(uint32_t index)
29{
30 auto const indexCoord = static_cast<double>(index);
31 LatLonWithAltitude const coord({indexCoord, indexCoord}, 0 /* altitude */);
32 // FakeVertex(NumMwmId numMwmId, LatLonWithAltitude const & from,
33 // LatLonWithAltitude const & to, Type type)
34 return FakeVertex(0 /* mwmId */, coord, coord, FakeVertex::Type::PureFake);
35}
36
37// Constructs simple fake graph where vertex (i + 1) is child of vertex (i) with |numFake| fake
38// vertices and |numReal| real vertices. Checks vertex-to-segment, segment-to-vertex, fake-to-real,

Callers 2

ConstructFakeGraphFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 1

FakeVertexFunction · 0.85

Tested by

no test coverage detected