I am using scratch and am trying to find the shortest distance between two points and then draw a line between them.
Basically the program allows the user to click on two points on a map and then calculates the longitude and latitude for both points. This part is fine.
I then need to draw a line between the two points that takes into consideration that the map is flat and sometimes the line needs to go off the screen and back around to find the shortest line. It would be great if I could also get the line to curve between the points. Is there an equation that would allow me to do this?
Thanks