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()
Region
public double getYMin()
Region
public double getXMax()
Region
public double getYMax()
Region
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean intersects(Region r)
Region
intersects
in interface Region
r
- The other region.