You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Return True if point (xp, yp) is inside one rectangle from (x0,y0) to (x1,y1) oe if it is inside another rectangle (x2,y2) to (x3,y3) and False if (xp, yp) is inside both rectangles or outside the edge of any rectangles or none"""
if y0 > y1:
shoot=y0
y0=y1
y1=shoot
elif x0 > x1:
shoot=x0
x0=x1
x1=shoot
if y2 > y3:
shoot=y2
y2=y3
y3=shoot
elif x2> x3:
shoot=x2
x2=x3
x3=temp
if (y0 <= yp <= y1 and x0 <= xp <=x1) and (y2 <= yp <= y3 and x2 <= xp <= x3):