public void TestOverlap2() { RECT r0 = new RECT( 10,0,10,10); RECT r1 = new RECT( 0,0,10,10); Assertion.Assert( r1.overlaps(r0) ); Assertion.Assert( !r1.overlaps_interior(r0) ); }
public void TestOverlap1() { RECT r0 = new RECT( 0,0,10,10); RECT r1 = new RECT( 10,10,20,20); RECT r2 = new RECT( 11,11,20,20); RECT r3 = new RECT( 9.999,9.999,20,20); Assertion.Assert( r1.overlaps(r0) ); Assertion.Assert( !r1.overlaps_interior(r0) ); Assertion.Assert( !r2.overlaps(r0) ); Assertion.Assert( r3.overlaps(r0) ); Assertion.Assert( r3.overlaps_interior(r0) ); }