Skip to content

berkaykeskino/Plane-Route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✈️Welcome to Plane Router!

⚡⚡What does this code do? When you choose two points on the earth's surface, what is the shortest path between them? The program finds it on 3D and reflects the path on 2D map to alleviate understanding the path.

💥How? When you choose two points on 2D map, it translates those coordinates into 3D. Draws a line between the two points in 3D coordinates (blue line). Then splits that line into n many points. After that behaves like those points are vectors from the center of the sphere and makes their length equal to the radius, which is equal to making them touch the surface(dotted line).

Finally, translates those n points' locations on the surface into 2D map locations.
👀See an example:

🔗Note that you should install Pygame to run the code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages