Is it possible to determine in which direction an angle is measured?
timo_schmid
Member Posts: 36 EDU
Hi everyone,
I want to measure multiple angles between vectors always to the same direction. i.e. I would also receive angles larger than 180 degree for some cases.
The only function I know is the angleBetween(), but it just always takes the smaller angle(<180 deg). Is there a way to always measure in the same direction (e.g. always clockwise in the XY-plane)?
Cheers,
Timo
I want to measure multiple angles between vectors always to the same direction. i.e. I would also receive angles larger than 180 degree for some cases.
The only function I know is the angleBetween(), but it just always takes the smaller angle(<180 deg). Is there a way to always measure in the same direction (e.g. always clockwise in the XY-plane)?
Cheers,
Timo
Tagged:
0
Best Answer
-
If they are always on the 3D XY plane, then it's simple - you can just use atan2 to measure the angle between each line and vector [1,0]. A minus value indicates obtuse. If they're in 3D space it would be a little more involved.Senior Director, Technical Services, EMEA5
Answers
-
If they are always on the 3D XY plane, then it's simple - you can just use atan2 to measure the angle between each line and vector [1,0]. A minus value indicates obtuse. If they're in 3D space it would be a little more involved.Senior Director, Technical Services, EMEA5
-
Oke, after some issues with the sign change at 180°, it worked.
Thanks a lot Neil!0

