Home | History | Annotate | Download | only in navigation

Lines Matching refs:mp

256             double mp = (yDistance * minutesPerWorldUnit);
260 lat = findLat(mp, getCentre().getLatitude());
265 lat = findLat(mp, 0.0, 85.0);
334 * Uses binary search to find the latitude of a given MP.
336 * @param mp Maridian part whose latitude to determine.
339 * @return The latitude of the MP value
342 private double findLat(double mp, double low, double high) {
344 mp = Math.round(mp);
351 if (guessMP == mp) {
354 if (guessMP > mp) {
369 * Uses linear search to find the latitude of a given MP.
371 * @param mp The meridian part for which to find the latitude.
373 * @return The latitude of the MP value.
376 private double findLat(double mp, double previousLat) {
378 mp = Double.parseDouble(form.format(mp));
383 if (guessMP == mp || Math.abs(guessMP - mp) < 0.05) {