• Parameters

    • boundary: [number, number][]

      an array of 2D points, each point is an array of numbers

    • point1: [number, number]

      the point parameter for axiom 1 or 2

    • point2: [number, number]

      the point parameter for axiom 1 or 2

    Returns boolean[]

    true if the parameters/solutions are valid

    Description

    Validate the input parameters to origami axiom 1 with respect to a boundary polygon that represents the folding surface. To validate axiom 1 check if the input points are inside the boundary polygon, if so, the solution is valid.