Class Rect2D


  • public class Rect2D
    extends java.lang.Object
    Simple utility immutable class to represent x, y, width, and height in 2D space and not rely on the awful Java AWT Rectangle class.
    • Constructor Detail

      • Rect2D

        public Rect2D​(double x,
                      double y,
                      double width,
                      double height)
      • Rect2D

        public Rect2D​(double x,
                      double y,
                      Size2D size)
    • Method Detail

      • getX

        public double getX()
      • getY

        public double getY()
      • getWidth

        public double getWidth()
      • getHeight

        public double getHeight()
      • plusX

        public Rect2D plusX​(double x)
      • plusY

        public Rect2D plusY​(double y)
      • plusWidth

        public Rect2D plusWidth​(double width)
      • plusHeight

        public Rect2D plusHeight​(double height)
      • plus

        public Rect2D plus​(double x,
                           double y,
                           double width,
                           double height)
      • ceilX

        public int ceilX()
      • ceilY

        public int ceilY()
      • ceilWidth

        public int ceilWidth()
      • ceilHeight

        public int ceilHeight()
      • floorX

        public int floorX()
      • floorY

        public int floorY()
      • floorWidth

        public int floorWidth()
      • floorHeight

        public int floorHeight()