• Parameters

    • vector: number[]

      a 2D or 3D vector

    Returns number[][]

    an array of basis vectors

    Description

    Given a vector (2D or 3D), using this vector as the first basis vector, find additional perpendicular vectors which all three span the space (2D or 3D) most effectively. (the vectors are all perpendicular).