Returns 1 if the given point on the right side of the segment, 0 if its on the segment, and -1 if the point is on the left side of the segment.

  • Parameters

    • x1: number

      X-coordinate of the startpoint of the segment.

    • y1: number

      Y-coordinate of the startpoint of the segment.

    • x2: number

      X-coordinate of the endpoint of the segment.

    • y2: number

      Y-coordinate of the endpoint of the segment.

    • px: number

      X-coordinate of the point.

    • py: number

      Y-coordinate of the point.

    Returns -1 | 0 | 1