Пример #1
0
 public static Vector2 GetVelocity(PositionTimeEntry2D start, PositionTimeEntry2D stop)
 {
     return(GetDisplacement(start, stop) / ((float)((GetElapsedTime(start, stop).TotalMilliseconds) / 1000)));
 }
Пример #2
0
 public static Vector2 GetDisplacement(PositionTimeEntry2D start, PositionTimeEntry2D stop)
 {
     return(start.Position - stop.Position);
 }
Пример #3
0
 public static TimeSpan GetElapsedTime(PositionTimeEntry2D start, PositionTimeEntry2D stop)
 {
     return(start.Time - stop.Time);
 }
Пример #4
0
 public void Add(PositionTimeEntry2D entry)
 {
     Add(entry.Position, entry.Angle, entry.Time);
 }