I am trying to calculate angle between two vector.
As return value, I want to get the angle from 0 to 360 following clockwise.
However, looking at the result, return value is only from 0 to 180 degree.
Can anyone tell me how I can make function to return angle from 0 to 360?
Angles from 0-360° mostly work for 2D, where it’s easy to work out what “clockwise” means.
In that case, you can use math.atan2. Please note that the result is [-Pi,Pi], so it accounts for 360°.
Giulio
–
Giulio Piacentino
for Robert McNeel & Associates giulio@mcneel.com