function boxIsAfter(box, x, y, left) {
  return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x
}
function boxIsAfter(box, x, y, left) {
  return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x
}
function boxIsAfter ( box , x , y , left ) { return box . bottom <= y ? false : box . top > y ? true : ( left ? box . left : box . right ) > x }
Returns true if the given side of a box is after the given coordinates, in top-to-bottom, left-to-right order.
Returns true if the given side of a box is after the given coordinates in top - to - bottom left - to - right order .
Check if a box is after the given x y