buildBoundingBox (b, e) {
    return (
      [
        { x: b.x, y: b.y },
        { x: e.x, y: b.y },
        { x: e.x, y: e.y },
        { x: b.x, y: e.y }
      ]
    )
  }
/**
   * Build a bounding box using the starting and ending coordinates.
   * Starting coordinates corresponding to the top left point
   * Ending coordinates corresponding to the bottom right point
   * @param {Array<Array>} b begin x,y
   * @param {Array<Array>} e end x,y
   *
   */
Build a bounding box using the starting and ending coordinates.
Starting coordinates corresponding to the top left point
Ending coordinates corresponding to the bottom right point
@param {Array} b begin x,y
@param {Array} e end x,y
Build a bounding box using the starting and ending coordinates . Starting coordinates corresponding to the top left point Ending coordinates corresponding to the bottom right point @param { Array } b begin x y @param { Array } e end x y
buildBoundingBox (b, e) {
    return (
      [
        { x: b.x, y: b.y },
        { x: e.x, y: b.y },
        { x: e.x, y: e.y },
        { x: b.x, y: e.y }
      ]
    )
  }
buildBoundingBox ( b , e ) { return ( [ { x : b . x , y : b . y } , { x : e . x , y : b . y } , { x : e . x , y : e . y } , { x : b . x , y : e . y } ] ) }
Build a bounding box using the starting and ending coordinates.
Build a bounding box using the starting and ending coordinates .