public final class RectangleDouble extends Object implements Rectangle
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
add(Rectangle r) |
boolean |
contains(double... p) |
static RectangleDouble |
create(double[] mins,
double[] maxes) |
int |
dimensions() |
double |
distance(Rectangle r)
Returns the distance to the given
Rectangle. |
boolean |
equals(Object obj) |
Geometry |
geometry() |
int |
hashCode() |
double |
intersectionVolume(Rectangle r) |
boolean |
intersects(Rectangle r) |
double[] |
maxes() |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
double[] |
mins() |
double |
surfaceArea() |
String |
toString() |
double |
volume() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreate, createOrdered, max, minpublic static RectangleDouble create(double[] mins, double[] maxes)
public boolean intersects(Rectangle r)
intersects in interface Geometrypublic Rectangle mbr()
Geometrypublic double intersectionVolume(Rectangle r)
intersectionVolume in interface Rectanglepublic Geometry geometry()
geometry in interface HasGeometrypublic double surfaceArea()
surfaceArea in interface Rectanglepublic int dimensions()
dimensions in interface GeometryCopyright © 2013–2022. All rights reserved.