Interface Geometry2D
-
@Deprecated public interface Geometry2D
Deprecated.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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description double
area()
Deprecated.Return the areaPoint2D
centroid()
Deprecated.Return the centroidboolean
contains(Point2D p)
Deprecated.Does the shape contain the given pointIntersectCase
intersect(Rectangle r)
Deprecated.Returns information about how this shape intersects the given rectanglevoid
translate(Vector2D v)
Deprecated.Translate according to the vector
-
-
-
Method Detail
-
translate
void translate(Vector2D v)
Deprecated.Translate according to the vector- Parameters:
v
-
-
contains
boolean contains(Point2D p)
Deprecated.Does the shape contain the given point- Parameters:
p
-
-
area
double area()
Deprecated.Return the area
-
centroid
Point2D centroid()
Deprecated.Return the centroid
-
intersect
IntersectCase intersect(Rectangle r)
Deprecated.Returns information about how this shape intersects the given rectangle- Parameters:
r
-
-
-