Ensage.Common.Menu.Transitions.Transition.GetValue C# (CSharp) Method

GetValue() public method

The get value.
public GetValue ( ) : float
return float
        public float GetValue()
        {
            if (this.startValue == 0 && this.finalValue == 0)
            {
                this.lastValue =
                    (float)
                    this.Equation(
                        this.Time - this.StartTime, 
                        0, 
                        this.endPosition.Distance(this.startPosition), 
                        this.Duration);
                return this.lastValue;
            }

            if (!this.Moving && this.StartTime > 0)
            {
                return this.lastValue;
            }

            this.lastValue =
                (float)this.Equation(this.Time - this.StartTime, this.startValue, this.finalValue, this.Duration * 1000);
            return this.lastValue;
        }