Class Rect2d


  • public class Rect2d
    extends Object
    • Field Detail

      • x

        public double x
      • y

        public double y
      • width

        public double width
      • height

        public double height
    • Constructor Detail

      • Rect2d

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

        public Rect2d()
      • Rect2d

        public Rect2d​(Point p,
                      Size s)
      • Rect2d

        public Rect2d​(double[] vals)
    • Method Detail

      • set

        public void set​(double[] vals)
      • size

        public Size size()
      • area

        public double area()
      • empty

        public boolean empty()
      • contains

        public boolean contains​(Point p)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object