Function inCircle

  • 快速计算最后一点与前三点组成的圆的关系 calculate the relative position of the last point to the circle formed by the first three points

    • Returns 1 if point d is outside the circle passing through a, b, and c
    • 返回 1 如果点 d 在通过 a、b 和 c 的圆外
    • Returns -1 if point d is inside the circle
    • 返回 -1 如果点 d 在圆内
    • Returns 0 if the four points are cocircular
    • 返回 0 如果四个点共圆

    Parameters

    • p1: Point | [X1: number, Y1: number]
    • p2: Point | [X2: number, Y2: number]
    • p3: Point | [X3: number, Y3: number]
    • p4: Point | [X4: number, Y4: number]

    Returns 1 | -1 | 0

Generated using TypeDoc