operator ~/ method

Offset operator ~/ (double operand)

Integer (truncating) division operator.

Returns an offset whose coordinates are the coordinates of the left-hand-side operand (an Offset) divided by the scalar right-hand-side operand (a double), rounded towards zero.

Implementation

Offset operator ~/(double operand) => Offset((dx ~/ operand).toDouble(), (dy ~/ operand).toDouble());