Information about geodesics on an ellipsoid of revolution is available at
https://geographiclib.sourceforge.io/C++/doc/geodesic.html.

You will be redirected there. Click on the link to go there directly.