예제 #1
0
 public void Lines_Collide(Line line1, Line line2)
 {
     Assert.True(CollisionChecking.Lines(line1.BeginX, line1.BeginY, line1.EndX, line1.EndY, line2.BeginX, line2.BeginY, line2.EndX, line2.EndY));
 }
예제 #2
0
 public void Lines_Seperate(Line line1, Line line2)
 {
     Assert.False(CollisionChecking.Lines(line1.BeginX, line1.BeginY, line1.EndX, line1.EndY, line2.BeginX, line2.BeginY, line2.EndX, line2.EndY));
 }