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