Example #1
0
 public Vector2 GetPositionAtTime(float time, out float progress)
 {
     time     = MathHelper.Clamp(time, 0, Duration);
     progress = Duration <= 0 ? 1 : time / Duration;
     return(Trajectory.GetPosition(progress));
 }
Example #2
0
 Vector2 ITrajectory.GetPosition(float progress)
 {
     return(Trajectory.GetPosition(progress));
 }
Example #3
0
 public Vector2 GetPosition(float progress, out float time)
 {
     time = GetTime(progress);
     return(Trajectory.GetPosition(progress));
 }