Ignore:
Timestamp:
2025-04-25T22:46:01+02:00 (21 hours ago)
Author:
stoecker
Message:

fix #24104 - drop remaining deprecations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r19321 r19394  
    170170
    171171    /**
    172      * Determines if the other point has almost the same lat/lon values.
    173      * @param other other lat/lon
    174      * @return <code>true</code> if the other point has almost the same lat/lon
    175      * values, only differing by no more than 1 / {@link #MAX_SERVER_PRECISION MAX_SERVER_PRECISION}.
    176      * @deprecated since 18464 (use {@link ILatLon#equalsEpsilon(ILatLon)} instead)
    177      */
    178     @Deprecated(since = "18464", forRemoval = true)
    179     public boolean equalsEpsilon(LatLon other) {
    180         return ILatLon.super.equalsEpsilon(other);
    181     }
    182 
    183     /**
    184172     * Determines if this lat/lon is within the given bounding box.
    185173     * @param b bounding box
     
    198186    public boolean isIn(Area a) {
    199187        return a == null || a.contains(x, y);
    200     }
    201 
    202     /**
    203      * Computes the distance between this lat/lon and another point on the earth.
    204      * Uses <a href="https://en.wikipedia.org/wiki/Haversine_formula">Haversine formula</a>.
    205      * @param other the other point.
    206      * @return distance in metres.
    207      * @deprecated since 18494 (use {@link ILatLon#greatCircleDistance(ILatLon)} instead)
    208      */
    209     @Deprecated(since = "18494", forRemoval = true)
    210     public double greatCircleDistance(LatLon other) {
    211         return ILatLon.super.greatCircleDistance(other);
    212     }
    213 
    214     /**
    215      * Returns bearing from this point to another.
    216      *
    217      * Angle starts from north and increases clockwise, PI/2 means east.
    218      *
    219      * Please note that reverse bearing (from other point to this point) should NOT be
    220      * calculated from return value of this method, because great circle path
    221      * between the two points have different bearings at each position.
    222      *
    223      * To get bearing from another point to this point call other.bearing(this)
    224      *
    225      * @param other the "destination" position
    226      * @return heading in radians in the range 0 &lt;= hd &lt; 2*PI
    227      * @since 9796
    228      * @deprecated since 18494 (use {@link ILatLon#bearing(ILatLon)} instead)
    229      */
    230     @Deprecated(since = "18494", forRemoval = true)
    231     public double bearing(LatLon other) {
    232         return ILatLon.super.bearing(other);
    233188    }
    234189
Note: See TracChangeset for help on using the changeset viewer.