Package org.htmlunit.util.geometry
Interface Shape2D
- All Known Implementing Classes:
Circle2D
,Line2D
,Polygon2D
,Rectangle2D
public interface Shape2D
Simple 2D shape interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Constant used for comparing doubles. -
Method Summary
-
Field Details
-
epsilon
static final double epsilonConstant used for comparing doubles.- See Also:
-
-
Method Details
-
contains
boolean contains(double x, double y) - Parameters:
x
- point x valuey
- point y value- Returns:
true
if the specified point is inside;false
otherwise.
-
isEmpty
boolean isEmpty()- Returns:
true
if the Shape is empty.
-