double computeRatioHeight(double width, Size ratioSize) { return width / (ratioSize.width / ratioSize.height); }