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 boolean
contains(double x, double y)
void
extend(double x, double y)
double
getBottom()
double
getLeft()
boolean
isEmpty()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-