Firstly, I would like to ask is the angle between to vectors measured clockwise or anticlockwise direction? Can you specify?
I need to calculate the angle between to vectors that I will create from 3 points. I need the angle to be between 0 and 360 degrees and always measured in the same direction.
How do I do this?
I will use this to find the angle required to make it a right angle... perpendicular. The reason direction is important is that i will be doing this twice from the same origin point on vector perpendicular at 90 the other perpendicular at 270. So if it only measures smallest angle i will not know whether i need to add or subtract an angle.
measure the angle between vector 0-1 and 0-3
measure the angle between vector 0-1 and 0-2
0-2 need to 90 degrees anticlockwise to 0-1
0-3 need to be 270 degrees anticlockwise to 0-1 (90 degrees clockwise)
I know the order of the points. 2 always needs to be 90 CCW and 3 needs to be 270 CCW but the points could be anywhere.
Hope this makes sense and many thanks in advance.
Tried to draw a picture but wont let me up load due to "reputation"