Class Rectangle

java.lang.Object
eu.hansolo.toolboxfx.geom.Rectangle

public class Rectangle extends Object
  • Field Details

    • x

      public double x
    • y

      public double y
    • width

      public double width
    • height

      public double height
  • Constructor Details

    • Rectangle

      public Rectangle()
    • Rectangle

      public Rectangle(double w, double h)
    • Rectangle

      public Rectangle(double x, double y, double w, double h)
  • Method Details

    • getX

      public double getX()
    • setX

      public void setX(double x)
    • getY

      public double getY()
    • setY

      public void setY(double y)
    • getWidth

      public double getWidth()
    • setWidth

      public void setWidth(double width)
    • getHeight

      public double getHeight()
    • setHeight

      public void setHeight(double height)
    • set

      public void set(Rectangle rect)
    • set

      public void set(double x, double y, double w, double h)
    • getCenterX

      public double getCenterX()
    • getCenterY

      public double getCenterY()
    • isEmpty

      public boolean isEmpty()
    • getBounds

      public Bounds getBounds()
    • intersects

      public boolean intersects(double x, double y, double width, double height)
    • createIntersection

      public Rectangle createIntersection(Rectangle rect)
    • createUnion

      public Rectangle createUnion(Rectangle rect)
    • contains

      public boolean contains(double x, double y)
    • contains

      public boolean contains(double x, double y, double width, double height)
    • union

      public static void union(Rectangle src1, Rectangle src2, Rectangle dst)
    • intersect

      public static void intersect(Rectangle src1, Rectangle src2, Rectangle dst)
    • copy

      public Rectangle copy()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object