transform method

PRectangle transform(
  1. PcanvasTransform t
)

Implementation

PRectangle transform(PcanvasTransform t) {
  if (t.isZeroTransformation) return this;
  return PRectangle(x + t.translateX, y + t.translateY, width, height);
}