Patrick B. answered 05/03/20
Math and computer tutor/teacher
type orderedPair
top as integer
left as integer
end type
type Tdimensions
height as integer
width as integer
end type
'checks if the ordered pair overlaps the picture box
Function Overlaps ( orderedPair cur, orderedPair target, Tdimensions picSizes) As Boolean
Dim boolReturn as Boolean
boolReturn = false
if cur.top >= target.top and cur.top <= target.top+picSizes.height AND
cur.left >= target.left and cur.left <= target.left + picSizes.width
then
boolReturn =true
endif
overlaps = boolReturn
End Function