mercator static method

num mercator(
  1. num lat
)

Returns mercator Y corresponding to latitude.

See http://en.wikipedia.org/wiki/Mercator_projection .

Implementation

static num mercator(num lat) => log(tan(lat * 0.5 + pi / 4));