96979899100101102103
// IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer( // pg, pg2).getIM(); LinearRing_LinearRing r2r = new LinearRing_LinearRing(pg.getShell(), pg2.getShell()); IntersectionMatrix rt = r2r.getIM(); assertTrue(!rt.match(IntersectionMatrix.DisjointPattern)); } }
3334353637383940414243
GeoPoint p2 = new GeoPoint(1, 0); ComputeIm r = new Point_Point(p1, p2); IntersectionMatrix rt = r.getIM(); assertTrue(rt.match(IntersectionMatrix.DisjointPattern)); } @Test public void testComputeIM2() { GeoPoint p1 = new GeoPoint(1, 2);
4445464748495051525354
GeoPoint p2 = new GeoPoint(1, 2); ComputeIm r = new Point_Point(p1, p2); IntersectionMatrix rt = r.getIM(); assertFalse(rt.match(IntersectionMatrix.DisjointPattern)); } @Test public void testComputeIM3() { GeoPoint p1 = new GeoPoint(1, 2);
545556575859606162
GeoPoint p1 = new GeoPoint(1, 2); GeoPoint p2 = new GeoPoint(1, 0); IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(p1, p2).getIM(); assertTrue(rt.match(IntersectionMatrix.DisjointPattern)); } }