Class Rectangle


  • public class Rectangle
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double x_max  
      double x_min  
      double y_max  
      double y_min  
    • Constructor Summary

      Constructors 
      Constructor Description
      Rectangle()  
      Rectangle​(double newXMin, double newXMax, double newYMin, double newYMax)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(Coordinate point)  
      void set​(double newXMin, double newXMax, double newYMin, double newYMax)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x_min

        public double x_min
      • x_max

        public double x_max
      • y_min

        public double y_min
      • y_max

        public double y_max
    • Constructor Detail

      • Rectangle

        public Rectangle()
      • Rectangle

        public Rectangle​(double newXMin,
                         double newXMax,
                         double newYMin,
                         double newYMax)
    • Method Detail

      • set

        public void set​(double newXMin,
                        double newXMax,
                        double newYMin,
                        double newYMax)
      • contains

        public boolean contains​(Coordinate point)