public class BugRect {
  private double lonMin,lonMax,latMin,latMax;
  
  public BugRect(double lonMin, double lonMax,
                 double latMin, double latMax) {
    this.lonMin = lonMin;
    this.lonMax = lonMax;
    this.latMin = latMin;
    this.latMax = latMax;
  }

  public boolean isInside(float lat, float lon) {
    return  ((lat >= this.latMin) && (lat <= this.latMax) &&
	     (lon >= this.lonMin) && (lon <= this.lonMax));
  }
  
  public static void main(String args[]) {

    BugRect zone = new BugRect(-14.999999999999998, 40.00000000000001, 29.999999999999993, 49.99999999999999);

    float lat = 36.0f;
    float lon = 6.0f;

    for (int i = 0; i < 10000; i++) {
      if(!zone.isInside(lat, lon)) {
	 System.out.println("Erreur boucle "+i
			  +" isInside "+zone.isInside(lat, lon));
	 System.exit(0);
      }
    }
  }
}
