Function counterClockwiseOrderRadians

  • Parameters

    • radians: number[]

      array of angles in radians

    Returns number[]

    array of indices of the input array, indicating the counter-clockwise sorted arrangement.

    Description

    sort an array of angles in radians by getting an array of reference indices to the input array, instead of an array of angles.

    Todo

    maybe there is such thing as an absolute radial origin (x axis?) but this chooses the first element as the first element and sort everything else counter-clockwise around it.