sort an array3, by the distance of each point to the previous point
summary (oneliner)
Sorts an array with the following rules:
- Get the 1st point position
- Go through the entire array and calculate the distance of every point to the 1st
- Get the index which has the smallest distance
- this index now becomes the new previous point
- remove the previous position from sorting algorithm
repeats until the entire array has been sorted.
doc
issues
example patch id
youtube ids (comma seperated)
caniuse query
collections
Inputs
Array (Array)
Array in
Outputs
Result (Array)
Sorted array out
Patches using SortArray3ByDistance
Changelog
Ops.Array.SortArray3xByDistance renamed to Ops.Array.SortArray3ByDistance 2019-06-13 - pandur |