package com.github.davidmoten.rtree.geometry;


public interface Geometry extends HasMbr {

	double distance(Rectangle r);

	boolean intersects(Rectangle r);

}

@@ -44,84 +44,813 @@
 y;%0A%0A
-%0Apublic interface Geometry extends HasMbr %7B%0A%0A%09double distance(Rectangle r);%0A
+import com.github.davidmoten.rtree.Entry;%0A%0A/**%0A * A geometrical region that represents an Entry spatially. It is recommended%0A * that implementations of this interface implement equals() and hashCode()%0A * appropriately that %7B@link Entry%7D equality checks work as expected.%0A */%0Apublic interface Geometry extends HasMbr %7B%0A%0A%09/**%0A%09 * Returns the distance to the given %7B@link Rectangle%7D. For a%0A%09 * %7B@link Rectangle%7D this might be Euclidean distance but for an EPSG4326%0A%09 * lat-long Rectangle might be great-circle distance.%0A%09 * %0A%09 * @param r%0A%09 *            rectangle to measure distance to%0A%09 * @return distance to the rectangle r from the geometry%0A%09 */%0A%09double distance(Rectangle r);%0A%0A%09/**%0A%09 * Returns true if and only if the geometry intersect the given%0A%09 * %7B@link Rectangle%7D.%0A%09 * %0A%09 * @param r%0A%09 * @return%0A%09 */
 %0A%09bo

add javadoc