| 181 | }; |
| 182 | |
| 183 | RectCase GetRectCase(m2::RectD const & rect, std::vector<m2::PointD> const & path) |
| 184 | { |
| 185 | m2::RectD pathRect; |
| 186 | for (auto const & p : path) |
| 187 | pathRect.Add(p); |
| 188 | |
| 189 | if (rect.IsRectInside(pathRect)) |
| 190 | return RectCase::Inside; |
| 191 | |
| 192 | if (rect.IsIntersect(pathRect)) |
| 193 | return RectCase::Intersect; |
| 194 | |
| 195 | return RectCase::Outside; |
| 196 | } |
| 197 | |
| 198 | std::vector<m2::SharedSpline> ClipSplineByRect(m2::RectD const & rect, m2::SharedSpline const & spline) |
| 199 | { |
no test coverage detected