testPt = CoordinateArrays.ptNotInList(testRing.getCoordinates(), tryShellRing.getCoordinates()); boolean isContained = false; if (PointLocation.isInRing(testPt, tryShellRing.getCoordinates()) )
testPt = CoordinateArrays.ptNotInList(testRing.getCoordinates(), tryShellRing.getCoordinates()); boolean isContained = false; if (PointLocation.isInRing(testPt, tryShellRing.getCoordinates()) )
public void testPtNotInList2() { assertTrue(CoordinateArrays.ptNotInList( new Coordinate[] { new Coordinate(1, 1), new Coordinate(2, 2), new Coordinate(3, 3) }, new Coordinate[] { new Coordinate(1, 1), new Coordinate(2, 2), new Coordinate(3, 3) } ) == null ); } public void testEnvelope1()
public void testPtNotInList1() { assertTrue(CoordinateArrays.ptNotInList( new Coordinate[] { new Coordinate(1, 1), new Coordinate(2, 2), new Coordinate(3, 3) }, new Coordinate[] { new Coordinate(1, 1), new Coordinate(1, 2), new Coordinate(1, 3) } ).equals2D(new Coordinate(2, 2)) ); } public void testPtNotInList2()