@Deprecated public interface Geometry2D
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Modifier and Type | Method and Description |
---|---|
double |
area()
Deprecated.
Return the area
|
Point2D |
centroid()
Deprecated.
Return the centroid
|
boolean |
contains(Point2D p)
Deprecated.
Does the shape contain the given point
|
IntersectCase |
intersect(Rectangle r)
Deprecated.
Returns information about how this shape intersects the given rectangle
|
void |
translate(Vector2D v)
Deprecated.
Translate according to the vector
|
void translate(Vector2D v)
v
- boolean contains(Point2D p)
p
- double area()
Point2D centroid()
IntersectCase intersect(Rectangle r)
r
-