cdm/src/main/java/ucar/unidata/geoloc/Bearing.java
public static Bearing calculateBearing(Earth e, LatLonPoint pt1,
                                           LatLonPoint pt2, Bearing result) {

        return calculateBearing(e, pt1.getLatitude(), pt1.getLongitude(),
                                pt2.getLatitude(), pt2.getLongitude(),
                                result);
    }
public static Bearing calculateBearing(Earth e, LatLonPoint pt1,
                                           LatLonPoint pt2, Bearing result) {

        return calculateBearing(e, pt1.getLatitude(), pt1.getLongitude(),
                                pt2.getLatitude(), pt2.getLongitude(),
                                result);
    }
Calculate the bearing between the 2 points.
See calculateBearing below.

@param e      Earth object (defines radius & flattening)
@param pt1    Point 1
@param pt2    Point 2
@param result Object to use if non-null
@return The bearing