andysanr/GreatCircle
Takes four double command-line arguments x1, y1, x2, and y2, the latitude and longitude (in degrees) of two points on the surface of the earth—and prints the great-circle distance (in kilometers) between them. Uses the Haversine formula.
Java