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

Function GetRectSideIndex

libs/geometry/clipping.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace
14{
15int GetRectSideIndex(int code)
16{
17 if (code == m2::detail::LEFT)
18 return 0;
19 if (code == m2::detail::TOP)
20 return 1;
21 if (code == m2::detail::RIGHT)
22 return 2;
23 return 3;
24}
25
26using CornersT = std::array<m2::PointD, 4>;
27

Callers 1

InsertCornersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected