operator % method

Offset operator %(
  1. double operand
)

Modulo (remainder) operator.

Returns an offset whose coordinates are the remainder of dividing the coordinates of the left-hand-side operand (an Offset) by the scalar right-hand-side operand (a double).

Implementation

Offset operator %(double operand) => Offset(dx % operand, dy % operand);