예제 #1
0
 public void Intersects_RectangleInside()
 {
     MCircle c = new MCircle(MVector2.Zero, 32f);
     Assert.IsTrue(c.Intersects(new MRectangle(-1f, -1f, 2f, 2f)));
 }
예제 #2
0
 public void Intersects_Top()
 {
     MCircle c = new MCircle(MVector2.Zero, 32f);
     Assert.IsTrue(c.Intersects(new MRectangle(-64f, -20f, 128f, 128f)));
 }
예제 #3
0
 public void Intersects_OutsideCorner_False()
 {
     MCircle c = new MCircle(new MVector2(-64, -64), 30f);
     Assert.IsFalse(c.Intersects(new MRectangle(-32f, -32f, 64f, 64f)));
 }