DPSF by Daniel Schroeder

<PackageReference Include="DPSF" Version="2.5.0" />

.NET API 168,448 bytes

 Position2DWithPreviousPosition

Inherits from the Position2D class and adds functionality to remember the object's last position.
public Vector2 PreviousPosition

The object's last position (before Update() was called).

public bool UpdatePreviousPositionAutomatically { get; set; }

Set this to False to not have the Update() function update the PreviousPosition value. Instead it will be up to an external object to update the PreviousPosition property each frame.

Default value is True.

Default Constructor.

Copy Constructor.

Copy Constructor.

public void CopyFrom(Position2DWithPreviousPosition positionToCopy)

Copy the given Position2DWithPreviousPosition object's data into this objects data.