Home | History | Annotate | Download | only in navigation

Lines Matching refs:mp

224             double mp = (yDistance * minutesPerPixel);
228 lat = findLat(mp, getCentre().getLatitude());
233 lat = findLat(mp, 0.0, 85.0);
315 * Uses binary search to find the latitude of a given MP.
317 * @param mp maridian part
320 * @return the latitude of the MP value
323 private double findLat(double mp, double low, double high) {
325 mp = Math.round(mp);
332 if (guessMP == mp) {
335 if (guessMP > mp) {
350 * Uses linear search to find the latitude of a given MP
351 * @param mp the meridian part for which to find the latitude
353 * @return the latitude of the MP value
355 private double findLat(double mp, double previousLat) {
357 mp = Double.parseDouble(form.format(mp));
362 if (guessMP == mp || Math.abs(guessMP - mp) < 0.001) {