operator - method

Velocity operator -(
  1. Velocity other
)

Return the difference of two velocities.

Implementation

Velocity operator -(Velocity other) {
  return Velocity(pixelsPerSecond: pixelsPerSecond - other.pixelsPerSecond);
}