Hey all -

I'm trying to calculate the angle between a vector A and the X vector.
The current vector angle component gives either the angle from 0-Pi or
the reflex angle (from Pi-2Pi), but either way, two angles that are
mirror images of one another across the X-axis return the same result.
I need them to return different values; either negative if below the X
axis (Blue) or 2Pi-angle (Green) if below. I came up with a sort of
messy work around that takes the Y component of angle A, and gives me
a boolean value of true if negative, which I can then use to make the
angle value negative.
http://grasshopper3d.googlegroups.com/web/diagram.gif

Any ideas on a better way to do this?

Thanks,

Andrew

Reply via email to