| 214 | } |
| 215 | |
| 216 | void ClipPathByRect(m2::RectD const & rect, std::vector<m2::PointD> && path, |
| 217 | std::function<void(m2::SharedSpline &&)> const & fn) |
| 218 | { |
| 219 | switch (GetRectCase(rect, path)) |
| 220 | { |
| 221 | case RectCase::Inside: fn(m2::SharedSpline(std::move(path))); break; |
| 222 | case RectCase::Outside: break; |
| 223 | case RectCase::Intersect: ClipPathByRectImpl(rect, path, fn); break; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | void ClipPathByRectBeforeSmooth(m2::RectD const & rect, std::vector<m2::PointD> const & path, |
| 228 | GuidePointsForSmooth & guidePoints, std::vector<std::vector<m2::PointD>> & clippedPaths) |
no test coverage detected