public interface Geometry
| Modifier and Type | Method and Description |
|---|---|
double |
distance(Rectangle r)
Returns the distance to the given
Rectangle. |
boolean |
intersects(Rectangle r) |
boolean |
isDoublePrecision() |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
double distance(Rectangle r)
Returns the distance to the given Rectangle. For a Rectangle
this might be Euclidean distance but for an EPSG4326 lat-long Rectangle might
be great-circle distance. The distance function should satisfy the following
properties:
distance(r) >= 0
if r1 contains r2 then distance(r1)<=distance(r2)
r - rectangle to measure distance toRectangle mbr()
boolean intersects(Rectangle r)
boolean isDoublePrecision()
Copyright © 2013–2023. All rights reserved.