• Parameters

    • line1: UniqueLine

      one 2D line in {normal, distance} form

    • line2: UniqueLine

      one 2D line in {normal, distance} form

    • point1: [number, number]

      the point to bring to the first line

    • point2: [number, number]

      the point to bring to the second line

    Returns UniqueLine[]

    an array of solutions in {normal, distance} form

    Description

    origami axiom 6: form up to three lines that are made by bringing a point to a line and a second point to a second line.

    Attribution

    a refactoring from C++ of Robert Lang's cubic solver from Reference Finder: https://langorigami.com/article/referencefinder/