Vector addition angle calculation error

20 replies · 3K views · last reply
Can't follow your work. Your original post gives the answer as 350. How did you come up with this number?
 
Last edited:
paisiello2 said:
Can't follow your work. Your original post gives the answer as 350. How v did you come up with this number?
I calculated the angle as -10°, but since the question asked for the angle counter-clockwise from the x axis, I thought it would be correctly expressed as 350.
 
paisiello2 said:
-10 degrees measured from what?
From the positive x axis.
 
Okay where did you get the -10 degrees from?

You can find the coordinate of the player's position through your vectors. After that you can simply use geometry to determine the ccw angle, after that, 360 - positive angle = clockwise angle. The program may not want to accept negative angles, try the positive equivalent between 0 and 360.
 
Feodalherren said:
Okay where did you get the -10 degrees from?

You can find the coordinate of the player's position through your vectors. After that you can simply use geometry to determine the ccw angle, after that, 360 - positive angle = clockwise angle. The program may not want to accept negative angles, try the positive equivalent between 0 and 360.

https://gyazo.com/efc009de2080feedea420d6b2a5edab4

Triangle on the right shows how I calculated -10° angle by using tan-1(-3.2/17.4), -3.2 being the change in y and 17.4 change in x after I added the vectors.
 
Josh Eiland said:
https://gyazo.com/efc009de2080feedea420d6b2a5edab4

Triangle on the right shows how I calculated -10° angle by using tan-1(-3.2/17.4), -3.2 being the change in y and 17.4 change in x after I added the vectors.

And yes, that's how I got 350° counter-clockwise. By doing 360 minus the clockwise angle (360-10).
 
Josh Eiland said:
From the positive x axis.

I think if you draw yourself a picture you will see that it can't be -10 degrees from the +ve x-axis.
 
paisiello2 said:
I think if you draw yourself a picture you will see that it can't be -10 degrees from the +ve x-axis.
I got -10 from the X-axis counter-clockwise when drawing a picture, as I've explained. Do you have a better answer or suggestion?
 
I could not understand your drawings. So my suggestion is to redraw a simple picture that summarizes the vectors and shows the -10 degrees.
 
Diagram of three vectors from a common origin: a thick red line at 45 degrees to the horizontal, a red segment at 30 degrees from the horizontal, and a blue line P. Labels read Bx=B*cos45, By=B*sin45, Cx=C*cos30, Cy=C*sin30.


From this image, find the vector P.
 
Feodalherren said:
Diagram of vector addition: a red vector B from the origin at 45 degrees to the horizontal, then red vector C at 30 degrees below horizontal, with resultant P in blue; labels Bx=B*cos45, By=B*sin45, Cx=C*cos30, Cy=C*sin30.


From this image, find the vector P.
That wouldn't make sense, as the angle from initial to final points would be from the top of the red line on the y-axis to the final spot, not from the origin.
 
paisiello2 said:
I could not understand your drawings. So my suggestion is to redraw a simple picture that summarizes the vectors and shows the -10 degrees.
I calculated the final point (17.4, -3.2) and drew a line from the origin (0,0) to this point, creating a triangle with the x and y segments. Using Pythagorean theorem I calculated the magnitude of this vector 17.7
I then used inverse tangent to find the angle -10°
 
Ok, I follow you now. I think you got it right. Maybe a small rounding error. Try and see if 349.6 works.
 
paisiello2 said:
Ok, I follow you now. I think you got it right. Maybe a small rounding error. Try and see if 349.6 works.
Tried it, didn't work. I think the teacher probably just put the answer in wrong accidentally. Will ask tomorrow. Thanks for help.
 
That is not the answer that I am getting at all.

I am getting a positive angle of 24.213 degrees counter-clockwise.

Again, if you're not showing your calculations it's impossible for us to tell you where you're going wrong.

Your y-coordinate is wrong. The point is in the first quadrant.

Bx=11.3137
By=11.3137
Cx=6.0622
Cy=3.5

Therefore the resultant vector is
r=[Bx+Cx,By-Cy]
 
OP calculated his final Y-coordinate as a negative, it doesn't make sense from the given picture assuming that the Y-axis goes along vector A and the X-axis goes through the bottom corner.