diagonal method

double diagonal(
  1. num d
)

Adapt according to the both width and height

Implementation

double diagonal(num d) => d * scaleHeight * scaleWidth;