incrementWH method

PRectangle incrementWH(
  1. num nW,
  2. num nH
)

Increments width,height by nW,nH.

Implementation

PRectangle incrementWH(num nW, num nH) =>
    PRectangle(x, y, width + nW, height + nH);