A two dimensional velocity estimate.
VelocityEstimates are computed by VelocityTracker.getVelocityEstimate. An estimate's confidence measures how well the velocity tracker's position data fit a straight line, duration is the time that elapsed between the first and last position sample used to compute the velocity, and offset is similarly the difference between the first and last positions.
- VelocityTracker, which computes VelocityEstimates.
- Velocity, which encapsulates (just) a velocity vector and provides some useful velocity operations.
- confidence → double
A value between 0.0 and 1.0 that indicates how well
VelocityTrackerwas able to fit a straight line to its position data. [...]final
- duration → Duration
The time that elapsed between the first and last position sample used
- offset → Offset
The difference between the first and last position sample used
- pixelsPerSecond → Offset
The number of pixels per second of velocity in the x and y directions.
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.