Euclidean distante = sqrt (dx * dx + dy * dy), you need to define dx as min(abs(x2-x1),screenwidth-abs(x2-x1)) same thing for dy.
dnk drone.vs.drones
- 3.5k
- 1
- 14
- 26