public final class RectangleDouble extends Object implements Rectangle
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
add(Rectangle r) |
double |
area() |
boolean |
contains(double x,
double y) |
static RectangleDouble |
create(double x1,
double y1,
double x2,
double y2) |
double |
distance(Rectangle r)
Returns the distance to the given
Rectangle. |
boolean |
equals(Object obj) |
Geometry |
geometry() |
int |
hashCode() |
double |
intersectionArea(Rectangle r) |
boolean |
intersects(Rectangle r) |
boolean |
isDoublePrecision() |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
double |
perimeter() |
String |
toString() |
double |
x1() |
double |
x2() |
double |
y1() |
double |
y2() |
public static RectangleDouble create(double x1, double y1, double x2, double y2)
public boolean intersects(Rectangle r)
intersects in interface Geometrypublic Rectangle mbr()
Geometrypublic double intersectionArea(Rectangle r)
intersectionArea in interface Rectanglepublic Geometry geometry()
geometry in interface HasGeometrypublic boolean isDoublePrecision()
isDoublePrecision in interface GeometryisDoublePrecision in interface RectangleCopyright © 2013–2024. All rights reserved.