public void CloseToMeTest1() { var segm = new BorderSegment(1, 1, 2, 2); var p = new Particle2DDummyBase(1) { X = 1, Y = 0.5 }; Assert.IsTrue(segm.CloseToMe(p, 0.5)); }
public void CloseToMeTest5() { var segm = new BorderSegment(1, 1, 2, 1); var p = new Particle2DDummyBase(1) { X = 0.4999, Y = 0.5 }; Assert.IsFalse(segm.CloseToMe(p, 0.5)); }