operator * method

Offset operator *(
  1. Size stoneSide
)

Computes the absolute brick position in a wall. stoneSide represents the smallest stone width/height.

Implementation

Offset operator *(Size stoneSide) =>
    Offset(this.x * stoneSide.width, this.y * stoneSide.height);