private static float calculateAspectRatio(float left, float top, float right, float bottom) {
    return (right - left) / (bottom - top);
  }
Calculates the aspect ratio given a rectangle.
core/src/main/java/com/theartofdev/edmodo/cropper/CropWindowMoveHandler.java