inverseMercator static method

double inverseMercator(
  1. double y
)

Returns the latitude (in radians) from the Mercator Y coordinate y.

Implementation

static double inverseMercator(double y) => 2 * atan(exp(y)) - pi / 2;