Java Utililty Methods Longitude Check

List of utility methods to do Longitude Check

Description

The list of methods to do Longitude Check are organized into topic(s).

Method

booleanlongitudeCloseTo(Double first, Double second, double rtol, double atol)
Determines if two longitudes are close to the same value modulo 360.0.
if (closeTo(first, second, rtol, atol))
    return true;
if (closeTo(first + 360.0, second, rtol, atol))
    return true;
if (closeTo(first, second + 360.0, rtol, atol))
    return true;
return false;