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

Method IsIntersect

libs/drape/overlay_handle.cpp:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool OverlayHandle::IsIntersect(ScreenBase const & screen, ref_ptr<OverlayHandle> const h) const
78{
79 Rects const & ar1 = GetExtendedPixelShape(screen);
80 Rects const & ar2 = h->GetExtendedPixelShape(screen);
81
82 for (size_t i = 0; i < ar1.size(); ++i)
83 {
84 for (size_t j = 0; j < ar2.size(); ++j)
85 if (ar1[i].IsIntersect(ar2[j]))
86 return true;
87 }
88 return false;
89}
90
91void * OverlayHandle::IndexStorage(uint32_t size)
92{

Callers 15

AddMethod · 0.45
InsertHandleMethod · 0.45
SelectMethod · 0.45
RenderDebugMethod · 0.45
operator()Method · 0.45
CheckShieldsNearbyMethod · 0.45
MustDropAllTilesMethod · 0.45
InvalidateRectMethod · 0.45
OnNewVisibleViewportMethod · 0.45
ResolveTileKeysMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected