public Geopoint offsetDegree(final double latOffset, final double lonOffset) {
        final double newLat = Math.max(-90, Math.min(90, getLatitude() + latOffset));
        final double newLon = (((getLongitude() + lonOffset) + 180) % 360) - 180;
        return new Geopoint(newLat, newLon);
    }
Calculates geopoint from given bearing and distance.

@param bearing  bearing in degree
@param distance distance in km
@return the projected geopoint
main/src/main/java/cgeo/geocaching/location/Geopoint.java