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 doubleConstant 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:
trueif the specified point is inside;falseotherwise.
-
isEmpty
boolean isEmpty()- Returns:
trueif the Shape is empty.
-