boolean sign = detIsPositive(x1, y1, x2, y2, wantLon, wantLat); if (sign != detIsPositive(x2, y2, x3, y3, wantLon, wantLat)) return false; if (sign != detIsPositive(x3, y3, x4, y4, wantLon, wantLat)) return false; if (sign != detIsPositive(x4, y4, x1, y1, wantLon, wantLat)) return false;
boolean sign = detIsPositive(x1, y1, x2, y2, wantLon, wantLat); if (sign != detIsPositive(x2, y2, x3, y3, wantLon, wantLat)) return false; if (sign != detIsPositive(x3, y3, x4, y4, wantLon, wantLat)) return false; if (sign != detIsPositive(x4, y4, x1, y1, wantLon, wantLat)) return false;
boolean sign = detIsPositive(x1, y1, x2, y2, wantLon, wantLat); if (sign != detIsPositive(x2, y2, x3, y3, wantLon, wantLat)) return false; if (sign != detIsPositive(x3, y3, x4, y4, wantLon, wantLat)) return false; if (sign != detIsPositive(x4, y4, x1, y1, wantLon, wantLat)) return false;