/** * Returns a new point of interest with the given NAME which position is defined by the given * location in LAT1, LON1 and the DISTANCE to move from that position the in the direction * defined by the given ANGLE * @param NAME * @param LAT1 * @param LON1 * @param DISTANCE * @param ANGLE * @return Poi that was calculated by moving the given point about the given distance and angle */ public Poi shiftTo(final String NAME, final double LAT1, final double LON1, final double DISTANCE, final double ANGLE) { return shiftTo(new Poi(NAME, LAT1, LON1), DISTANCE, ANGLE); }
/** * Returns a point which represents the x,y position on the given rectangle MAP of the given point * of interest POINT * @param POINT * @param MAP * @return Point2D that represents the x,y position of the given lat, lon values on the * given rectangle of the map */ public Point2D toXY(final Poi POINT, final java.awt.Rectangle MAP) { return toXY(POINT.getLat(), POINT.getLon(), MAP); } // </editor-fold>
/** * Returns the distance in meters between two given points of interest, P1 and P2 * on our lovely planet earth. * @param P1 * @param P2 * @return The distance between P1 and P2 in meter */ public double distanceTo(final Poi P1, final Poi P2) { return distanceTo(P1.getLon(), P1.getLat(), P2.getLon(), P2.getLat()); }
/** * Returns the distance in meters between two given points of interest, P1 and P2 * on our lovely planet earth. * @param P1 * @param P2 * @return The distance between P1 and P2 in meter */ public double distanceTo(final Poi P1, final Poi P2) { return distanceTo(P1.getLon(), P1.getLat(), P2.getLon(), P2.getLat()); }
/** * Returns a point which represents the x,y position on the given rectangle MAP of the given point * of interest POINT * @param POINT * @param MAP * @return Point2D that represents the x,y position of the given lat, lon values on the * given rectangle of the map */ public Point2D toXY(final Poi POINT, final java.awt.Rectangle MAP) { return toXY(POINT.getLat(), POINT.getLon(), MAP); } // </editor-fold>
/** * Returns a new point of interest with the given NAME which position is defined by the given * location in LAT1, LON1 and the DISTANCE to move from that position the in the direction * defined by the given ANGLE * @param NAME * @param LAT1 * @param LON1 * @param DISTANCE * @param ANGLE * @return Poi that was calculated by moving the given point about the given distance and angle */ public Poi shiftTo(final String NAME, final double LAT1, final double LON1, final double DISTANCE, final double ANGLE) { return shiftTo(new Poi(NAME, LAT1, LON1), DISTANCE, ANGLE); }