public void Test() { var s = new LineSegment1F { Point1 = 1, Point2 = 8, }; Assert.IsTrue(Numeric.AreEqual(1, s.GetPoint(0))); Assert.IsTrue(Numeric.AreEqual(8, s.GetPoint(1))); Assert.IsTrue(Numeric.AreEqual(1 + 7 * 0.3f, s.GetPoint(0.3f))); }
public void Test() { var s = new LineSegment1F { Point1 = 1, Point2 = 8, }; Assert.IsTrue(Numeric.AreEqual(1, s.GetPoint(0))); Assert.IsTrue(Numeric.AreEqual(8, s.GetPoint(1))); Assert.IsTrue(Numeric.AreEqual(1 + 7*0.3f, s.GetPoint(0.3f))); }