code: function pointIsInsideBounds(x, y, bounds) {
          return x >= bounds.left &&
              y >= bounds.top &&
              x <= bounds.left + bounds.width &&
              y <= bounds.top + bounds.height;
      }
docs: Check if a point is inside specified bounds
  @param x
  @param y
  @param bounds
  @returns {boolean}