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)
Copyright © 2013–2015. All rights reserved.