public static boolean isPointInPolygon(Geo x, float[] poly, boolean polyInDegrees) { Geo[] rg = new Geo[poly.length / 2]; for (int j = 0; j < poly.length / 2; j++) { rg[j] = new Geo(poly[j * 2], poly[j * 2 + 1], polyInDegrees);
public static boolean isPointInPolygon(Geo x, Geo[] poly) { Geo c = center(poly);    double d = x.distance(c); if (d >= (Math.PI / 2)) { return false;
    public static boolean isPointInPolygon(Geo x, float[] poly,                                           boolean polyInDegrees) {        Geo[] rg = new Geo[poly.length / 2];        for (int j = 0; j < poly.length / 2; j++) {            rg[j] = new Geo(poly[j * 2], poly[j * 2 + 1], polyInDegrees);        }        return isPointInPolygon(x, rg);    }