• Parameters

    • polygon: [number, number][]
    • line: VecLine2

      one 2D line in {vector, origin} form

    • point1: [number, number]

      one 2D point, the point that the line(s) pass through

    • point2: [number, number]

      one 2D point, the point that is being brought onto the line

    Returns VecLine2[]