/** * Method to calculate the bearing of a waypoint * * @param dest waypoint * @return bearing of waypoint 361 if this or dest is not valid */ public double getBearing(CWPoint dest) { if (!this.isValid() || dest == null || !dest.isValid()) return 361; return GeodeticCalculator.calculateBearing(TransformCoordinates.WGS84, this, dest); }