computeRatioHeight function

double computeRatioHeight(
  1. double width,
  2. Size ratioSize
)

Implementation

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