Velocity class
A velocity in two dimensions.
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, override
- pixelsPerSecond → Offset
-
The number of pixels per second of velocity in the x and y directions.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
clampMagnitude(
double minValue, double maxValue) → Velocity -
Return a velocity whose magnitude has been clamped to
minValue
andmaxValue
. [...] -
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 +(
Velocity other) → Velocity - Return the sum of two velocities.
-
operator -(
Velocity other) → Velocity - Return the difference of two velocities.
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
override
-
operator unary-(
) → Velocity - Return the negation of a velocity.