MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / overlaps

Function overlaps

utilities/olcUTIL_Geometry2D.h:1105–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103 // Check if point overlaps with point (analogous to contains())
1104 template<typename T1, typename T2>
1105 inline constexpr bool overlaps(const olc::v_2d<T1>& p1, const olc::v_2d<T2>& p2)
1106 {
1107 return contains(p1, p2);
1108 }
1109
1110 // overlaps(l,p)
1111 // Checks if line segment overlaps with point

Callers 3

searchMethod · 0.85
containsFunction · 0.85
intersectsFunction · 0.85

Calls 8

containsFunction · 0.85
closestFunction · 0.85
topMethod · 0.80
bottomMethod · 0.80
leftMethod · 0.80
rightMethod · 0.80
mag2Method · 0.45
sideMethod · 0.45

Tested by

no test coverage detected