Direction of a vector relative to another vector?

Click For Summary
To determine the direction of one vector relative to another, it is essential to calculate the angle between them while considering the direction of rotation. The angle should be defined in a range from -180 to 180 degrees to accurately reflect whether a vector is to the left or right of a reference vector. When the angle is always positive, it fails to provide the necessary context for directional orientation. Adjustments must be made when the angle exceeds the defined range, particularly during continuous changes in angle. Using this approach ensures that negative angles are obtained when a vector rotates in the opposite direction.
snocavotia
Messages
11
Reaction score
0
Hello, I have two vectors, the angle between them is dynamic and constantly changing. I have found a way to calculate the angle between these two vectors. But this angle is always a positive number even if i am looking left or right. How can i get context(wether vector DC,DB,DE,DF according to the image below) is to the right of vector DA or to the left of it?
http://oi42.tinypic.com/2prwfo0.jpg
 
Physics news on Phys.org
If you define the angle anti-clockwise from DA, then it will always be a positive number - yeah.

You want your domain to go from -180 to 180 deg, then you need to handle the case where the vector is at +170deg and you rotate it +20deg (in the positive rotation direction) to put is at -170deg.

But when the angle is constantly changing you are better off with the standard approach.
Note - ##+3\pi/2= -\pi/2## ... you should get negative angles if the vector rotated the opposite way.
 
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
3
Views
2K
Replies
5
Views
779
  • · Replies 43 ·
2
Replies
43
Views
7K
Replies
26
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K