Interesting Exercise. (c++)

Planet's radius is "R". Also, 2 satellites were located(longitude and latitude) another places.
How can find distance between 2 satellites?



Example:
R=3437,5
Satellite 1: x=-45 y=-45
Satellite 2: x=45 y=-45
Convert the polar coordinates into cartesian, then use the 3D distance formula.
I'm beginner. Help me
Topic archived. No new replies allowed.