| Constructor and Description |
|---|
LineRegion(double x1,
double y1,
double x2,
double y2)
Construct a line 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) |
Line2D |
getLine()
Get a Line2D representing this region.
|
double |
getX1()
Get the first X coordinate.
|
double |
getX2()
Get the second X coordinate.
|
double |
getXMax()
Get the upper X coordinate.
|
double |
getXMin()
Get the lower X coordinate.
|
double |
getY1()
Get the first Y coordinate.
|
double |
getY2()
Get the second 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 LineRegion(double x1,
double y1,
double x2,
double y2)
x1 - The first X coordinate.y1 - The first Y coordinate.x2 - The second X coordinate.y2 - The second Y coordinate.public double getX1()
public double getY1()
public double getX2()
public double getY2()
public Line2D getLine()
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.