Hi guys, I come to seek some knowledge.
I have a couple of lines pointing towards a center, and I need to rotate them so that they face the white direction. This rotation must be according to the least rotation possible.
I was not able to think of an appropriate criteria to use. I thought about comparing Angle and Reflex angle, but it is not enough: In the picture you can see that both reflex angles (blue) are larger than the actual angle (red), but the line in the upper corner needs to be rotated anti-clockwise while the line in the lower corner needs to be rotated clockwise.
The final result should look like this:
Rotation.gh (16.3 KB)