public class TestIntersection extends TestCase {
@Test
public void testContains() {
Transformation t = new Transformation.Translation( 0.5, 0.5 );
Intersection r = new Intersection( Polygon.UNIT_SQUARE, t.apply( Polygon.UNIT_SQUARE ) );
assertFalse( r.contains( Point.ORIGIN ));
assertTrue( r.contains( new Point( 0.75, 0.75 )));
assertFalse( r.contains( new Point( .75, .25 )));
assertFalse( r.contains( new Point( .25, .25 )));
assertFalse( r.contains( new Point( .25, .65 )));