@@ -0,0 +1,652 @@
+import static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Test;%0A%0Aimport com.github.davidmoten.rtree.geometry.Geometries;%0Aimport com.github.davidmoten.rtree.geometry.Point;%0Aimport com.github.davidmoten.rtree.geometry.Rectangle;%0A%0Apublic class PointTest %7B%0A%0A%09private static final double PRECISION = 0.000001;%0A%0A%09@Test%0A%09public void testCoordinates() %7B%0A%09%09Point point = Geometries.point(1, 2);%0A%09%09assertEquals(1, point.x(), PRECISION);%0A%09%09assertEquals(2, point.y(), PRECISION);%0A%09%7D%0A%0A%09@Test%0A%09public void testDistance() %7B%0A%09%09Point p1 = Geometries.point(1, 2);%0A%09%09Rectangle r = Geometries.rectangle(4, 6, 4, 6);%0A%09%09assertEquals(5, p1.distance(r), PRECISION);%0A%09%7D%0A%7D%0A

add point test