Interpolate() public method

Interpolates a value for the specified percentage.
public Interpolate ( float percentage ) : float
percentage float The percentage.
return float
        public void Interpolate(float percentage,  float interpolatedValue)
        {
            var startValue = 0.0f;
            var endValue = 10.0f;
            var interpolator = new LinearInterpolator(startValue, endValue);

            Assert.AreEqual(interpolatedValue, interpolator.Interpolate(percentage));
        }