public static Vector2 GetVelocity(PositionTimeEntry2D start, PositionTimeEntry2D stop) { return(GetDisplacement(start, stop) / ((float)((GetElapsedTime(start, stop).TotalMilliseconds) / 1000))); }
public static Vector2 GetDisplacement(PositionTimeEntry2D start, PositionTimeEntry2D stop) { return(start.Position - stop.Position); }
public static TimeSpan GetElapsedTime(PositionTimeEntry2D start, PositionTimeEntry2D stop) { return(start.Time - stop.Time); }
public void Add(PositionTimeEntry2D entry) { Add(entry.Position, entry.Angle, entry.Time); }