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

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

        return calculateBearing(defaultEarth, pt1.getLatitude(),
                                pt1.getLongitude(), pt2.getLatitude(),
                                pt2.getLongitude(), result);
    }
Calculate the bearing between the 2 points.
See calculateBearing below.  Uses default Earth object.

@param pt1    Point 1
@param pt2    Point 2
@param result Object to use if non-null
@return The bearing