Package org.scijava.util
Class IntRect
- java.lang.Object
-
- org.scijava.util.IntRect
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(IntCoords coords)Tests whether the given coordinates lie within the rectangle.booleanequals(Object o)IntCoordsgetBottomRight()Gets the bottom right coordinate of the rectangle.IntCoordsgetTopLeft()Gets the top left coordinate of the rectangle.inthashCode()IntRectintersection(IntRect r)Returns a Rect representing the intersection of this Rect with the given Rect.booleanintersects(IntRect r)Returns true if this rect intersects the given rect.StringtoString()
-
-
-
Method Detail
-
intersects
public boolean intersects(IntRect r)
Returns true if this rect intersects the given rect.
-
intersection
public IntRect intersection(IntRect r)
Returns a Rect representing the intersection of this Rect with the given Rect. If the two Rects do not intersect, the result is an empty Rect.
-
contains
public boolean contains(IntCoords coords)
Tests whether the given coordinates lie within the rectangle.
-
getTopLeft
public IntCoords getTopLeft()
Gets the top left coordinate of the rectangle.
-
getBottomRight
public IntCoords getBottomRight()
Gets the bottom right coordinate of the rectangle.
-
-