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 Geometry
public Rectangle mbr()
Geometry
public double intersectionArea(Rectangle r)
intersectionArea
in interface Rectangle
public Geometry geometry()
geometry
in interface HasGeometry
public boolean isDoublePrecision()
isDoublePrecision
in interface Geometry
isDoublePrecision
in interface Rectangle
Copyright © 2013–2024. All rights reserved.