Calculating a theta using dot product in 3D coordinate

6 replies · 3K views · last reply
Tah
Messages
12
Reaction score
0
Diagram of three points joined by two line segments: x1, y1, z1 at upper left and x3, y3, z3 at lower right, both meeting at x2, y2, z2. A dashed vertical line extends upward from x2, and the angle theta is marked between it and the segment to x1.


I'm so confused about finding an angle, theta in this illustration.

With having three coordinate information, how can I calculate the theta using dot product?

I would easily find the angle by using trigonometric formula if I ignore the z-axis.

But I want to solve this problem with 3-dimensional coordinate system by using dot product formula.

Please help me confused.
 
There are two definitions for dot product of two vectors.we have [itex]\vec{u}\cdot\vec{v}=u_xv_x+u_yv_y+u_zv_z=uv\cos{\theta}[/itex].
I think your answer is clear now!
 
  • Like
Likes   Reactions: 1 person
Thanks

Shyan said:
There are two definitions for dot product of two vectors.we have [itex]\vec{u}\cdot\vec{v}=u_xv_x+u_yv_y+u_zv_z=uv\cos{\theta}[/itex].
I think your answer is clear now!

Yes, I've already known that formula but could not understand exactly.

Could you help me more detail about such variables?

I was wondering about what is u_x, v_x, u_y, v_y... in this case.

I think 'u' is (x1-x2, y1-y2, z1-z2) and 'v' is (x2-x3, y2-y3, z2-z3). Is this correct?

Thank you for your support :)
 
[itex]u_x,v_y,...[/itex] x,y and z components of the vectors u and v.They can be anything! [itex](x_1-x_2, y_1-y_2, z_1-z_2) and (x_2-x_3, y_2-y_3, z_2-z_3)[/itex] are just particular examples when u and v are displacement vectors.You just have to find the components of the vectors and then their magnitudes.
 
  • Like
Likes   Reactions: 1 person
Tah said:
I think 'u' is (x1-x2, y1-y2, z1-z2) and 'v' is (x2-x3, y2-y3, z2-z3). Is this correct?
In this example, yes. And when Shyan writes ##uv\ cos\theta##, here u and v are norms of the two vectors. Just in case it wasn't clear.
 
Thanks

K^2 said:
In this example, yes. And when Shyan writes ##uv\ cos\theta##, here u and v are norms of the two vectors. Just in case it wasn't clear.

I have one more question

Diagram of three points joined by two line segments, with the middle point labelled x2, y2, z2, the left point x1, y1, z1 and the right point x3, y3, z3. A dashed line extends up from the middle point, with angle theta marked in red between it and the left segment and angle theta prime marked in blue between the left and right segments.


In this case, should I just do 180' minus the theta calculated by using dot product formula to find the theta prime(')?

Thanks!
 
Yes.

There exists a plane containing both vectors, and in that plane, all the planar geometry you know applies. So θ and θ' are complimentary angles, and therefore, their sum is 180°.
 
  • Like
Likes   Reactions: 1 person