| Constructor and Description |
|---|
PointRegion(double x,
double y)
Construct a point region.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Region r)
Find out if this region fully contains another region.
|
boolean |
equals(java.lang.Object o) |
Point2D |
getPoint()
Get a Point2D representing this region.
|
double |
getX()
Get the X coordinate.
|
double |
getXMax()
Get the upper X coordinate.
|
double |
getXMin()
Get the lower X coordinate.
|
double |
getY()
Get the Y coordinate.
|
double |
getYMax()
Get the upper Y coordinate.
|
double |
getYMin()
Get the lower Y coordinate.
|
int |
hashCode() |
boolean |
intersects(Region r)
Find out if this region intersects another region.
|
java.lang.String |
toString() |
public PointRegion(double x,
double y)
x - The X coordinate.y - The Y coordinate.public double getX()
public double getY()
public Point2D getPoint()
public double getXMin()
Regionpublic double getYMin()
Regionpublic double getXMax()
Regionpublic double getYMax()
Regionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean intersects(Region r)
Regionintersects in interface Regionr - The other region.