Exemple #1
0
        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)));
        }
        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)));
        }