@Test
public void testIntersects4() {
System.out.println("Intersects overlapping polygins with edge collision (expected true)");
FreedomPolygon source = new FreedomPolygon();
source.append(new FreedomPoint(0, 0));
source.append(new FreedomPoint(100, 0));
source.append(new FreedomPoint(100, 50));
source.append(new FreedomPoint(0, 50));
FreedomPolygon target = new FreedomPolygon();
target.append(new FreedomPoint(5, 5));
target.append(new FreedomPoint(75, -25));
target.append(new FreedomPoint(75, 75));
target.append(new FreedomPoint(50, 75));
boolean expResult = true;
boolean result = TopologyUtils.intersects(source, target);
assertEquals(expResult, result);
}