operator % method

PrinterOffset operator %(
  1. double operand
)

Modulo (remainder) operator.

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

Implementation

PrinterOffset operator %(double operand) => PrinterOffset(x! % operand, y! % operand);