static toRectCoordinates(bbox) {
    const { x: x1, y: y1, width, height } = bbox;
    const [x2, y2] = [x1 + width, y1];
    const [x3, y3] = [x1 + width, y1 + height];
    const [x4, y4] = [x1, y1 + height];

    return { x1, x2, x3, x4, y1, y2, y3, y4 };
  }
Convert standard bbox to a set of coordinates
@param {BBox} bbox
@returns {RectCoordinates}