static convertToRectBBox(rect) {
    return {
      x: rect.x1,
      y: rect.y1,
      width: rect.x2 - rect.x1,
      height: rect.y3 - rect.y1,
    };
  }
Convert RectCoordinates to BBox
@param {RectCoordinates} rect
@returns {BBox}