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

Class RoutePattern

libs/drape_frontend/route_shape.hpp:78–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78struct RoutePattern
79{
80 RoutePattern() = default;
81
82 RoutePattern(double dashLength, double gapLength) : m_isDashed(true), m_dashLength(dashLength), m_gapLength(gapLength)
83 {}
84
85 bool operator==(RoutePattern const & pattern) const
86 {
87 double constexpr kEps = 1e-5;
88 return m_isDashed == pattern.m_isDashed && std::fabs(m_dashLength - pattern.m_dashLength) < kEps &&
89 std::fabs(m_gapLength - pattern.m_gapLength) < kEps;
90 }
91
92 bool m_isDashed = false;
93 double m_dashLength = 0.0;
94 double m_gapLength = 0.0;
95};
96
97enum class SubrouteStyleType
98{

Callers 3

InsertRouteMethod · 0.85
AddTransitGateSegmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected