Class Rect2d


  • public class Rect2d
    extends java.lang.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)
      • clone

        public Rect2d clone()
        Overrides:
        clone in class java.lang.Object
      • 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 java.lang.Object
      • equals

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

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