Package org.htmlunit.util.geometry
Class Rectangle2D
- java.lang.Object
-
- org.htmlunit.util.geometry.Rectangle2D
-
-
Constructor Summary
Constructors Constructor Description Rectangle2D(double x1, double y1, double x2, double y2)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(double x, double y)voidextend(double x, double y)doublegetBottom()doublegetLeft()booleanisEmpty()java.lang.StringtoString()
-
-
-
Method Detail
-
getLeft
public double getLeft()
- Returns:
- the x coord of the leftmost corner.
-
getBottom
public double getBottom()
- Returns:
- the y coord of the bottom line.
-
contains
public boolean contains(double x, double y)
-
extend
public void extend(double x, double y)
-
isEmpty
public boolean isEmpty()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-