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

Function IsTheSameSegments

libs/routing/index_router.cpp:169–173  ·  view source on GitHub ↗

Returns true if seg1 and seg2 have the same geometry.

Source from the content-addressed store, hash-verified

167
168// Returns true if seg1 and seg2 have the same geometry.
169bool IsTheSameSegments(m2::PointD const & seg1From, m2::PointD const & seg1To, m2::PointD const & seg2From,
170 m2::PointD const & seg2To)
171{
172 return (seg1From == seg2From && seg1To == seg2To) || (seg1From == seg2To && seg1To == seg2From);
173}
174
175bool IsDeadEnd(Segment const & segment, bool isOutgoing, bool useRoutingOptions, WorldGraph & worldGraph,
176 set<Segment> & visitedSegments)

Callers 1

IsFencedOffMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected