latRad static method

double latRad(
  1. dynamic lat
)

Implementation

static double latRad(lat) {
  var sin = math.sin(lat * math.pi / 180);
  var radX2 = math.log((1 + sin) / (1 - sin)) / 2;
  return math.max(math.min(radX2, math.pi), -math.pi) / 2;
}