|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Geometry2D
Common set of operations available on 2d shapes.
NOTE: This API is still in flux and might change in incompatible ways in the next release.
| Method Summary | |
|---|---|
double |
area()
Return the area |
Point2D |
centroid()
Return the centroid |
boolean |
contains(Point2D p)
Does the shape contain the given point |
IntersectCase |
intersect(Rectangle r)
Returns information about how this shape intersects the given rectangle |
void |
translate(Vector2D v)
Translate according to the vector |
| Method Detail |
|---|
void translate(Vector2D v)
v - boolean contains(Point2D p)
p - double area()
Point2D centroid()
IntersectCase intersect(Rectangle r)
r -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||