• Parameters

    • a: [number, number] | [number, number, number]

      one point, this will become the origin

    • b: [number, number] | [number, number, number]

      one point

    Returns VecLine2

    an object with "vector" and "origin".

    Description

    Given two points, create a vector-origin line representation of a line that passes through both points. This will work in n-dimensions. If there are more than two points, the rest will be ignored.