Hi,
I have a tree with four branches, inside each branch there are four vectors. These four branches contain almost the same four vectors (they are not exactly the same but they are very similar from one branch to another).
I need to sort the four vectors in each branch so that the similar ones have the same rank in the branch (as an example, I wrote a rank they could have if they were sorted out the way I need them to be).
Do you know how I could manage to do this?
Thanks,
David Rutten
Are these similarities easily encoded using a single number? For example Length or XY angle or Angle from unit Z? If so, I'd compute these numbers for all vectors, then use Sort with those numbers as keys.
If they aren't and if you really want to order all vectors in all higher branches according to their similarity with the first branch, some other approach will be needed. I suspect treating the vectors as points and using Closest Point is the way forward.
Jun 7, 2016