isValidLat static method

bool isValidLat(
  1. double lat
)

true if lat is a valid latitude in the range -90..90

Implementation

static bool isValidLat(double lat)
{
  return lat >= -90 && lat <= 90;
}