getDirection(x, y) {
    const A = this.dy;
    const B = -this.dx;
    const C = this.dot;
    const D = B === 0 ? 1 : B;

    if ((A * x + B * y + C) * D > 0) return true;
    else return false;
  }
Determines which side of the line a point is on.
@param {number} x - The x-coordinate of the point.
@param {number} y - The y-coordinate of the point.
@returns {boolean} True if the point is on the positive side of the line, false otherwise.