public class RealRect extends Object
Modifier and Type | Field and Description |
---|---|
double |
height |
double |
width |
double |
x |
double |
y |
Constructor and Description |
---|
RealRect() |
RealRect(double x,
double y,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
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() |
public double x
public double y
public double width
public double height
public RealRect()
public RealRect(double x, double y, double width, double height)
public boolean intersects(RealRect r)
public RealRect intersection(RealRect r)
public boolean contains(RealCoords coords)
public RealCoords getTopLeft()
public RealCoords getBottomRight()
Copyright © 2015–2022 SciJava. All rights reserved.