Get() публичный Метод

Get the value of the path at the current point
public Get ( double currentPoint ) : double
currentPoint double point along the profile to measure
Результат double
        public static void SetpointProfileTest()
        {
            SetPointProfile p = new SetPointProfile();
            p.Add(0, 0);
            p.Add(1, 1);
            p.SetPoint = 100;

            //Assert.AreEqual(0, p.Get(-0.1));
            Assert.AreEqual(0.1, p.Get(0.1));
            Assert.AreEqual(0.9, p.Get(0.9));
            Assert.AreEqual(0.5, p.Get(0.5));
            Assert.AreEqual(1, p.Get(1.5));

            //Reverse
            p.SetPoint = -100;

            Assert.AreEqual(0, p.Get(0));
            Assert.AreEqual(-1, p.Get(1));
            Assert.AreEqual(-0.5, p.Get(0.5));
        }