The aspect ratio of width / height (1.0 when height is 0).
width
height
static double aspectRatio(double width, double height) { if (height == 0) return 1; return width / height; }