Feb-17-2020, 01:17 AM
You just need to check:
if x3 >= x1 and x3 <= x2: #<---- means it is in range from left to right and if y3 >= y1 and y3 <= y2: #<---- means it is in range from up and downIf both those are True then it's in the rectangle.