Esempio n. 1
0
 public void Contains_Outside()
 {
     MCircle c = new MCircle(MVector2.Zero, 32f);
     Assert.IsFalse(c.Contains(new MVector2(32f, 32f)));
     Assert.IsFalse(c.Contains(new MVector2(-32f, -32f)));
     Assert.IsFalse(c.Contains(new MVector2(32f, -32f)));
     Assert.IsFalse(c.Contains(new MVector2(-32f, 32f)));
 }
Esempio n. 2
0
 public void Contains_Inside()
 {
     MCircle c = new MCircle(MVector2.Zero, 32f);
     Assert.IsTrue(c.Contains(MVector2.Zero));
     Assert.IsTrue(c.Contains(new MVector2(0, 32f)));
     Assert.IsTrue(c.Contains(new MVector2(0, -32f)));
     Assert.IsTrue(c.Contains(new MVector2(32f, 0)));
     Assert.IsTrue(c.Contains(new MVector2(-32f, 0)));
 }