@Deprecated public class Rectangle extends Object implements Geometry2D
NOTE: This API is still in flux and might change in incompatible ways in the next release.
| Constructor and Description |
|---|
Rectangle()
Deprecated.
|
Rectangle(double x1,
double y1,
double x2,
double y2)
Deprecated.
|
Rectangle(Point2D ptMin,
Point2D ptMax)
Deprecated.
|
| 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
|
boolean |
equals(Object obj)
Deprecated.
|
Point2D |
getMaxPoint()
Deprecated.
|
Point2D |
getMinPoint()
Deprecated.
|
int |
hashCode()
Deprecated.
|
IntersectCase |
intersect(Rectangle r)
Deprecated.
Returns information about how this shape intersects the given rectangle
|
String |
toString()
Deprecated.
|
void |
translate(Vector2D v)
Deprecated.
Translate according to the vector
|
public Rectangle()
public Rectangle(double x1,
double y1,
double x2,
double y2)
public double area()
Geometry2Darea in interface Geometry2Dpublic Point2D centroid()
Geometry2Dcentroid in interface Geometry2Dpublic boolean contains(Point2D p)
Geometry2Dcontains in interface Geometry2Dpublic void translate(Vector2D v)
Geometry2Dtranslate in interface Geometry2Dpublic IntersectCase intersect(Rectangle r)
Geometry2Dintersect in interface Geometry2Dpublic Point2D getMaxPoint()
public Point2D getMinPoint()