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