isPointWithin({ x, y} ) {

    const { x1, x2, y1, y2 } = this;

    const mostLeft = Math.min(x1, x2);
    const mostRight = Math.max(x1, x2);
    const mostBottom = Math.min(y1, y2);
    const mostTop = Math.max(y1, y2);

    return mostLeft < x && x < mostRight && mostBottom < y && y < mostTop;

  }
@param {number} x - x coordinate
@param {number} y - y coordinate
@return {boolean}