Function sortPointsAlongVector

  • Parameters

    • points: number[][]

      array of points (which are arrays of numbers)

    • vector: number[]

      one vector

    Returns number[]

    a list of sorted indices to the points array.

    Description

    Sort an array of n-dimensional points along an n-dimensional vector, get the indices in sorted order.