This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#testa colisão em um eixo e retorna verdadeiro ou falso | |
def test_colli(a, b, c, d): | |
if (a >= c and a <= d) or (b >= c and b <= d): | |
return True | |
return False | |
#posição x e y do canto esquerdo do retangulo | |
posX = input () | |
posY = input () |