Esempio n. 1
0
 public Rectangle GetCurrentRect()
 {
     if (TweenTimer.HasTriggered)
     {
         return(End);
     }
     else
     {
         float t = TweenFn(TweenTimer.CurrentTimeSeconds, 0.0f, 1.0f, TweenTimer.TargetTimeSeconds);
         return(MathFunctions.Lerp(Start, End, t));
     }
 }