| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int px,
int py)
Returns true if the specified point is located within this shape.
|
boolean |
contains(Point2D p)
Returns true if the specified point
p is located within this shape. |
boolean |
contains(Shape s)
Returns true if the shape
s is entirely located within this shape. |
boolean |
intersects(Shape s)
Returns true if the shape
s is entirely or partially located within
this shape. |
Polygon |
toPolygon() |
boolean contains(Point2D p)
p is located within this shape.
This includes cases where the point is located on one of the edges.boolean contains(int px,
int py)
boolean contains(Shape s)
s is entirely located within this shape.
This includes cases where the shape is located on this shape's edges.boolean intersects(Shape s)
s is entirely or partially located within
this shape.Polygon toPolygon()