operator * method

IntOffset operator *(
  1. int scalar
)

Multiplies the offset by a scalar value.

Returns a new IntOffset with coordinates multiplied by the given scalar.

Implementation

IntOffset operator *(int scalar) => IntOffset(x * scalar, y * scalar);