public interface Geometry
| Modifier and Type | Method and Description |
|---|---|
double |
distance(Rectangle r)
Returns the distance to the given
RectangleImpl. |
boolean |
intersects(Rectangle r) |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
double distance(Rectangle r)
Returns the distance to the given RectangleImpl. For a
RectangleImpl 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)
Copyright © 2013–2016. All rights reserved.