I'd like to draw a geodesic onto a array of pixels. I already have a way to draw a pixel at a given longitude latitude, and I am given the longitude and latitude of each end point. What is the parametric equation for tracing a geodesic between two given points?
Some have suggested a way to find the distance between two points. I'm not looking for a distance, rather some sort of parameterization I can iterate through which will generate successive points along the great circle joining the two given points.
I'd transform the points to Cartesian coordinates, consider them as vectors, form their cross product to determine an axis of rotation, and rotate one into the other about this axis (using the axis-angle representation of rotations). If necessary, you can transform the resulting Cartesian coordinates back to longitudes and latitudes.