VelocityEstimate class
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.
See also:
- VelocityTracker, which computes VelocityEstimates.
- Velocity, which encapsulates (just) a velocity vector and provides some useful velocity operations.
Constructors
Properties
- confidence → double
-
A value between 0.0 and 1.0 that indicates how well VelocityTracker
was 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
to compute pixelsPerSecond.
final
- offset → Offset
-
The difference between the first and last position sample used
to compute pixelsPerSecond.
final
- pixelsPerSecond → Offset
-
The number of pixels per second of velocity in the x and y directions.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited