- #1
BrentK
- 21
- 0
Hi there,
I have another one for you (Blush)
How can I efficiently determine if the angle between 2 vectors is positive or negative...
Take a look at this example drawing:
View attachment 8685
Known are the xy coordinates of 2 adjoining vectors, (I also have calcullated the 360 deg angle relative to the x-axis if that is a help ... shown with grey arrows on the drawing)
In the drawing the leading vector (Red) as adjoined to either a vector giving a positive or (left) angle, or a vector in the negative direction (right) angle.
I need to be able to calculate if the adjoining vector is a positive or negative angle in relation to the leading vector... sounds simple right? and proabably is, but I just don't seem to be able to get it right with all different vector direction possibilities
The formula should calculate all possibilites of two adjoining vectors, so e.g. could also be heading in the opposite direction where x1y1 is less than x0y0... hope you understand what i mean :)
Look forward to any help yo may be able to provide.
Many thanks, This forum has been a great help to me!
I have another one for you (Blush)
How can I efficiently determine if the angle between 2 vectors is positive or negative...
Take a look at this example drawing:
View attachment 8685
Known are the xy coordinates of 2 adjoining vectors, (I also have calcullated the 360 deg angle relative to the x-axis if that is a help ... shown with grey arrows on the drawing)
In the drawing the leading vector (Red) as adjoined to either a vector giving a positive or (left) angle, or a vector in the negative direction (right) angle.
I need to be able to calculate if the adjoining vector is a positive or negative angle in relation to the leading vector... sounds simple right? and proabably is, but I just don't seem to be able to get it right with all different vector direction possibilities
The formula should calculate all possibilites of two adjoining vectors, so e.g. could also be heading in the opposite direction where x1y1 is less than x0y0... hope you understand what i mean :)
Look forward to any help yo may be able to provide.
Many thanks, This forum has been a great help to me!