Esempio n. 1
0
 public void Separate_MVector2_Separated()
 {
     MCircle c1 = new MCircle(new MVector2(-64, -64), 30f);
     MVector2 v = new MVector2(-50, -50);
     MCircle separated = c1.Separate(v);
     Assert.IsTrue(separated.SeparationVector(v) == MVector2.Zero);
 }
Esempio n. 2
0
 public void Separate_Rectangle_Separated()
 {
     MCircle c1 = new MCircle(new MVector2(-64, -64), 30f);
     MRectangle r = new MRectangle(-128, 0, 128, 70);
     MCircle separated = c1.Separate(r);
     Assert.IsTrue(separated.SeparationVector(r) == MVector2.Zero);
 }
Esempio n. 3
0
 public void Separate_Circle_Separated()
 {
     MCircle c1 = new MCircle(new MVector2(-64, -64), 30f);
     MCircle c2 = new MCircle(new MVector2(-54, -74), 20f);
     MCircle separated = c1.Separate(c2);
     Assert.IsTrue(separated.SeparationVector(c2) == MVector2.Zero);
 }