static double aspectRatio(WidthAndHeight etc img) { ret img == null ? Double.NaN : doubleRatio(img.getWidth(), img.getHeight()); }