diameter method

double diameter(
  1. num d
)

Adapt according to the maximum value of scale width and scale height

Implementation

double diameter(num d) => d * max(scaleWidth, scaleHeight);