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

Function ClipPathByRect

libs/geometry/clipping.cpp:216–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void 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
227void ClipPathByRectBeforeSmooth(m2::RectD const & rect, std::vector<m2::PointD> const & path,
228 GuidePointsForSmooth & guidePoints, std::vector<std::vector<m2::PointD>> & clippedPaths)

Callers 1

ProcessLineRulesMethod · 0.85

Calls 3

GetRectCaseFunction · 0.85
SharedSplineClass · 0.85
ClipPathByRectImplFunction · 0.85

Tested by

no test coverage detected