Class BoundingBox


  • public class BoundingBox
    extends java.lang.Object
    • Constructor Detail

      • BoundingBox

        public BoundingBox()
      • BoundingBox

        public BoundingBox​(int x,
                           int y,
                           int width,
                           int height)
      • BoundingBox

        public BoundingBox​(Point center,
                           int width,
                           int height)
    • Method Detail

      • getX

        public int getX()
      • getY

        public int getY()
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • addPoint

        public void addPoint​(Point location)
      • getCenter

        public Point getCenter()
      • setCenter

        public void setCenter​(Point center)
      • computeWithAspectRatio

        public BoundingBox computeWithAspectRatio​(double R)
      • toString

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

        public java.lang.String fragment()
      • addBoundingbox

        public void addBoundingbox​(BoundingBox box)
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object