|
|
@ -6,13 +6,13 @@ et qui renvoie l’entier 2 si le point est à l’intérieur d’un des demi-ce |
|
|
|
|
|
|
|
milieu_de_terrain = 300 |
|
|
|
|
|
|
|
cote_a = x |
|
|
|
cote_b = milieu_de_terrain - y |
|
|
|
cote_a = int(x) |
|
|
|
cote_b = 300 - int(y) |
|
|
|
|
|
|
|
rd = (cote_a)**2 + (cote_b)**2 |
|
|
|
rd = sqrt(rd) |
|
|
|
|
|
|
|
cote_a = 1000 - x |
|
|
|
cote_a = 1000 - int(x) |
|
|
|
|
|
|
|
rg = (cote_a)**2 + (cote_b)**2 |
|
|
|
rg = sqrt(rg) |
|
|
@ -23,7 +23,9 @@ et qui renvoie l’entier 2 si le point est à l’intérieur d’un des demi-ce |
|
|
|
return 2 |
|
|
|
|
|
|
|
"""tests pour la fonction""" |
|
|
|
""" |
|
|
|
print(points (150,300)) |
|
|
|
print(points (500,300)) |
|
|
|
print(points (900,100)) |
|
|
|
print(points (750,400)) |
|
|
|
print(points (750,400)) |
|
|
|
""" |