VelocityTracker

The input data is provided by calling addPosition. Adding data is cheap.

To obtain a velocity, call calculateVelocity or getVelocityEstimate. This will
compute the velocity based on the data added so far. Only call these when
you need to use the velocity, as they are comparatively expensive.

The quality of the velocity estimation will be better if more data points
have been received.

Public constructors

<init>

VelocityTracker()

Computes a pointer's velocity.

The input data is provided by calling addPosition. Adding data is cheap.

To obtain a velocity, call calculateVelocity or getVelocityEstimate. This will
compute the velocity based on the data added so far. Only call these when
you need to use the velocity, as they are comparatively expensive.

The quality of the velocity estimation will be better if more data points
have been received.