Class Rectangle


  • public class Rectangle
    extends Object
    • Field Detail

      • x

        public int x
      • y

        public int y
      • width

        public int width
      • height

        public int height
    • Constructor Detail

      • Rectangle

        public Rectangle​(int x,
                         int y,
                         int width,
                         int height)
        Parameters:
        x -
        y -
        width -
        height -
    • Method Detail

      • contains

        public boolean contains​(int x2,
                                int y2)