Returns latitude from mercator Y. - Java java.lang

Java examples for java.lang:Math Geometry Distance

Description

Returns latitude from mercator Y.

Demo Code


//package com.java2s;
import static java.lang.Math.*;

public class Main {
    /**//ww w. ja va 2 s  .  co m
     * Returns latitude from mercator Y.
     */
    static double inverseMercator(double y) {
        return 2 * atan(exp(y)) - PI / 2;
    }
}

Related Tutorials