SortArray3ByDistance Op
sort an array3, by the distance of each point to the previous point
Summary (oneliner)
<p>Sorts an array with the following rules:</p> <ul> <li>Get the 1st point position</li> <li>Go through the entire array and calculate the distance of every point to the 1st</li> <li>Get the index which has the smallest distance</li> <li>this index now becomes the new previous point</li> <li>remove the previous position from sorting algorithm</li> </ul> <p>repeats until the entire array has been sorted.</p>
- Ops.Array.PointArray.SortArray3ByDistance
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch SortArray3ByDistance example
INPUT PORTS
<p>Array in</p>
OUTPUT PORTS
<p>Sorted array out</p>