Class BoundingBox


  • public class BoundingBox
    extends 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)
      • fragment

        public String fragment()
      • addBoundingbox

        public void addBoundingbox​(BoundingBox box)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object