Class BoundingBox

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static BoundingBox EMPTY
      An empty bounding box.
    • Constructor Summary

      Constructors 
      Constructor Description
      BoundingBox()  
      BoundingBox​(float minX, float maxX, float minY, float maxY)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object o)  
      float getMaxX()
      Returns the maximum x-coordinate of the bounding box.
      float getMaxY()
      Returns the maximum Y coordinate of the bounding box.
      float getMinX()
      Returns the minimum x-coordinate of the bounding box.
      float getMinY()
      Returns the minimum y-coordinate of the bounding box.
      int hashCode()  
      void setMaxX​(float maxX)
      Returns the maximum x-coordinate of the bounding box.
      void setMaxY​(float maxY)
      Returns the maximum Y coordinate of the bounding box.
      void setMinX​(float minX)
      Returns the minimum x-coordinate of the bounding box.
      void setMinY​(float minY)
      Returns the minimum y-coordinate of the bounding box.
      String toString()  
    • Field Detail

      • EMPTY

        public static final BoundingBox EMPTY
        An empty bounding box.
    • Constructor Detail

      • BoundingBox

        public BoundingBox()
      • BoundingBox

        public BoundingBox​(float minX,
                           float maxX,
                           float minY,
                           float maxY)
    • Method Detail

      • getMinX

        public float getMinX()
        Returns the minimum x-coordinate of the bounding box.
        Returns:
        the minimum x-coordinate of the bounding box.
      • getMaxX

        public float getMaxX()
        Returns the maximum x-coordinate of the bounding box.
        Returns:
        the maximum x-coordinate of the bounding box
      • getMinY

        public float getMinY()
        Returns the minimum y-coordinate of the bounding box.
        Returns:
        the minimum y-coordinate of the bounding box
      • getMaxY

        public float getMaxY()
        Returns the maximum Y coordinate of the bounding box.
        Returns:
        the maximum Y coordinate of the bounding box.
      • setMinX

        public void setMinX​(float minX)
        Returns the minimum x-coordinate of the bounding box.
      • setMaxX

        public void setMaxX​(float maxX)
        Returns the maximum x-coordinate of the bounding box.
      • setMinY

        public void setMinY​(float minY)
        Returns the minimum y-coordinate of the bounding box.
      • setMaxY

        public void setMaxY​(float maxY)
        Returns the maximum Y coordinate of the bounding box.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object