public static double getDirection(int lon1, int lat1, int lon2, int lat2) {
        return normalize(getAngle(lon1, lat1, lon2, lat2));
    }
Calculate the angle defined by 3 points
(and deliver it's cosine on the fly)
main/src/main/java/cgeo/geocaching/brouter/util/CheapAngleMeter.java