| 1193 | } |
| 1194 | |
| 1195 | bool StopHasMultipleShapes(std::vector<ShapeInfoPT> const & shapeInfosIn, |
| 1196 | std::vector<ShapeInfoPT> const & shapeInfosOut) |
| 1197 | { |
| 1198 | size_t count = 0; |
| 1199 | |
| 1200 | for (auto const & si : shapeInfosIn) |
| 1201 | { |
| 1202 | auto const it = std::find_if(shapeInfosOut.begin(), shapeInfosOut.end(), [&si](ShapeInfoPT const & so) |
| 1203 | { return AlmostEqualAbs(si.m_direction, so.m_direction, kEps); }); |
| 1204 | if (it != shapeInfosOut.end()) |
| 1205 | ++count; |
| 1206 | } |
| 1207 | |
| 1208 | return std::max(shapeInfosIn.size(), shapeInfosOut.size()) - count > 1; |
| 1209 | } |
| 1210 | |
| 1211 | void TransitSchemeBuilder::GenerateStop(ref_ptr<dp::GraphicsContext> context, StopNodeParamsPT const & stopParams, |
| 1212 | m2::PointD const & pivot, |
no test coverage detected