static public boolean betweenLon(double lon, double lonBeg, double lonEnd) {
    lonBeg = lonNormal(lonBeg, lon);
    lonEnd = lonNormal(lonEnd, lon);
    return (lon >= lonBeg) && (lon <= lonEnd);
  }
static public boolean betweenLon(double lon, double lonBeg, double lonEnd) {
    lonBeg = lonNormal(lonBeg, lon);
    lonEnd = lonNormal(lonEnd, lon);
    return (lon >= lonBeg) && (lon <= lonEnd);
  }
static public boolean betweenLon ( double lon , double lonBeg , double lonEnd ) { lonBeg = lonNormal ( lonBeg , lon ) ; lonEnd = lonNormal ( lonEnd , lon ) ; return ( lon >= lonBeg ) && ( lon <= lonEnd ) ; }
Test if point lies between two longitudes, deal with wrapping.

@param lon    point to test
@param lonBeg beginning longitude
@param lonEnd ending longitude
@return true if lon is between lonBeg and lonEnd.
@deprecated
Test if point lies between two longitudes deal with wrapping .