Class XYRectangle


  • public class XYRectangle
    extends java.lang.Object
    Represents a x/y cartesian rectangle.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double maxX
      minimum y value
      double maxY
      maximum y value
      double minX
      minimum x value
      double minY
      maximum x value
    • Constructor Summary

      Constructors 
      Constructor Description
      XYRectangle​(double minX, double maxX, double minY, double maxY)
      Constructs a bounding box by first validating the provided x and y coordinates
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • minX

        public final double minX
        minimum x value
      • maxX

        public final double maxX
        minimum y value
      • minY

        public final double minY
        maximum x value
      • maxY

        public final double maxY
        maximum y value
    • Constructor Detail

      • XYRectangle

        public XYRectangle​(double minX,
                           double maxX,
                           double minY,
                           double maxY)
        Constructs a bounding box by first validating the provided x and y coordinates
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object