|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.util.RealRect
public class RealRect
A class for representing a rectangular region, in real coordinates.
Field Summary | |
---|---|
double |
height
|
double |
width
|
double |
x
|
double |
y
|
Constructor Summary | |
---|---|
RealRect()
|
|
RealRect(double x,
double y,
double width,
double height)
|
Method Summary | |
---|---|
boolean |
contains(RealCoords coords)
Tests whether the given coordinates lie within the rectangle. |
boolean |
equals(Object o)
|
RealCoords |
getBottomRight()
Gets the bottom right coordinate of the rectangle. |
RealCoords |
getTopLeft()
Gets the top left coordinate of the rectangle. |
int |
hashCode()
|
RealRect |
intersection(RealRect r)
Returns a Rect representing the intersection of this Rect with the given Rect. |
boolean |
intersects(RealRect r)
Returns true if this rect intersects the given rect. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double x
public double y
public double width
public double height
Constructor Detail |
---|
public RealRect()
public RealRect(double x, double y, double width, double height)
Method Detail |
---|
public boolean intersects(RealRect r)
public RealRect intersection(RealRect r)
public boolean contains(RealCoords coords)
public RealCoords getTopLeft()
public RealCoords getBottomRight()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |