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()
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.