isValidLon static method

bool isValidLon(
  1. double lon
)

true if lon is a valid longitude in the range -180..180

Implementation

static bool isValidLon(double lon)
{
  return lon >= -180 && lon <= 180;
}