| 830 | } |
| 831 | |
| 832 | void UpdateShapeInfos(std::vector<ShapeInfoPT> & shapeInfos, m2::PointD const & newDir, |
| 833 | std::set<std::string> const & colors) |
| 834 | { |
| 835 | auto const newDirReverse = -newDir; |
| 836 | |
| 837 | for (ShapeInfoPT & info : shapeInfos) |
| 838 | { |
| 839 | if (AlmostEqualAbs(info.m_direction, newDir, kEps) || AlmostEqualAbs(info.m_direction, newDirReverse, kEps)) |
| 840 | { |
| 841 | for (auto const & color : colors) |
| 842 | info.m_colors.insert(color); |
| 843 | return; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | shapeInfos.push_back(ShapeInfoPT(newDir, colors)); |
| 848 | } |
| 849 | |
| 850 | void UpdateShapeInfos(std::vector<ShapeInfoPT> & shapeInfos, m2::PointD const & newDir, std::string const & color) |
| 851 | { |
no test coverage detected