transformY method

double transformY(
  1. double y,
  2. Size size
)

Implementation

double transformY(double y, Size size) {
  switch (rotation) {
    case InputImageRotation.ROTATION_90:
    case InputImageRotation.ROTATION_270:
      return y * size.height / imageSize.width;
    default:
      return y * size.height / imageSize.height;
  }
}