Angle between line and the axis

  • Context: MHB 
  • Thread starter Thread starter karthikS
  • Start date Start date
  • Tags Tags
    Angle Axis Line
Click For Summary

Discussion Overview

The discussion revolves around determining the true angle of a 3D straight line with respect to the z-axis, given its angles with the z-axis in the X-Z and Y-Z planes. The participants explore the mathematical relationships involved in calculating this angle and address potential misunderstandings regarding the definitions of angles in relation to lines and planes.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants propose using the angles with the X-Z and Y-Z planes to find the angle with the z-axis using a formula involving trigonometric functions.
  • One participant suggests a formula for the angle with the z-axis, which involves the sine of the angles with the respective planes, but there is confusion about whether to use sine or arcsine in the formula.
  • A later reply clarifies that the intended function was sine, not arcsine, and corrects the formula accordingly.
  • Another participant questions the correctness of the results obtained from the formula, particularly in the context of a cube where the angles with the planes are both 45 degrees, yet the formula yields 90 degrees.

Areas of Agreement / Disagreement

Participants express uncertainty regarding the application of the formula and whether it accurately represents the true angle of the line with the z-axis. There is no consensus on the correctness of the calculations or the interpretation of the angles involved.

Contextual Notes

The discussion highlights potential limitations in the assumptions made about the angles and their relationships, as well as the dependence on the definitions of angles with respect to lines and planes.

karthikS
Messages
3
Reaction score
0
Consider a 3D straight line passing through z-axis. Following two angles are given (available):

(1) Angle of the line with the z-axis in X-Z plane
(2) Angle of the line with the z-axis in Y-Z plane

I want to know the true angle of the line with the z-axis, i.e.,the angle of the line with z-axis in the plane passing through the line and z-axis.View attachment 7971
 

Attachments

  • cuboid1.png
    cuboid1.png
    9.8 KB · Views: 148
Last edited:
Physics news on Phys.org
karthikS said:
Consider a 3D straight line passing through z-axis. Following two angles are given (available):

(1) Angle of the line with the z-axis in X-Z plane
(2) Angle of the line with the z-axis in Y-Z plane

I want to know the true angle of the line with the z-axis, i.e.,the angle of the line with z-axis in the plane passing through the line and z-axis.

Hi karthikS, welcome to MHB!

Can it be that you mean the angle of the line with the X-Z plane?
Respectively the angle with the Y-Z plane?
Because we can take an angle of a line either with respect to another line, or with respect to a plane.

If so, then let $\angle X\text-Z$ and $\angle Y\text-Z$ be those angles.
And let $\angle Z$ be the angle with the z-axis.

Then:
$$\angle Z = \arccos \sqrt{1-\sin(\angle Y\text-Z)^2-\sin(\angle X\text-Z)^2} \tag 1$$

This follows from the vector project formula, and how angles of lines and planes are defined.
That is, let $\mathbf{\hat a}$ be a direction vector along the line with length 1.
And let $\mathbf{\hat x}$, $\mathbf{\hat y}$, and $\mathbf{\hat z}$ be the standard coordinate vectors (of length 1).
Then:
\begin{cases}
\sin\angle Y\text-Z = \mathbf{\hat a}\cdot \mathbf{\hat x} = a_x \\
\sin\angle X\text-Z = \mathbf{\hat a}\cdot \mathbf{\hat y} = a_y \\
\cos\angle Z = \mathbf{\hat a}\cdot \mathbf{\hat z} = a_z \\
\sqrt{a_x^2+a_y^2+a_z^2} = 1 \tag 2
\end{cases}
From (2) we can find (1).

Since I do not know how familiar you are with these kind of manipulations, please let us know if any step is unclear.
 
Last edited:
I like Serena said:
Hi karthikS, welcome to MHB!

Can it be that you mean the angle of the line with the X-Z plane?
Respectively the angle with the Y-Z plane?
Because we can take an angle of a line either with respect to another line, or with respect to a plane.

If so, then let $\angle X\text-Z$ and $\angle Y\text-Z$ be those angles.
And let $\angle Z$ be the angle with the z-axis.

Then:
$$\angle Z = \arccos \sqrt{1-\arcsin(\angle Y\text-Z)^2-\arcsin(\angle X\text-Z)^2} \tag 1$$

This follows from the vector project formula, and how angles of lines and planes are defined.
That is, let $\mathbf{\hat a}$ be a direction vector along the line with length 1.
And let $\mathbf{\hat x}$, $\mathbf{\hat y}$, and $\mathbf{\hat z}$ be the standard coordinate vectors (of length 1).
Then:
\begin{cases}
\sin\angle Y\text-Z = \mathbf{\hat a}\cdot \mathbf{\hat x} = a_x \\
\sin\angle X\text-Z = \mathbf{\hat a}\cdot \mathbf{\hat y} = a_y \\
\cos\angle Z = \mathbf{\hat a}\cdot \mathbf{\hat z} = a_z \\
\sqrt{a_x^2+a_y^2+a_z^2} = 1 \tag 2
\end{cases}
From (2) we can find (1).

Since I do not know how familiar you are with these kind of manipulations, please let us know if any step is unclear.

Have you meant 'arcsin' inside the square root, or it is simply 'sin'?
 
karthikS said:
Have you meant 'arcsin' inside the square root, or it is simply 'sin'?

Yes. Sorry. I meant sine.
Fixed in my previous post.
 
I like Serena said:
Yes. Sorry. I meant sine.
Fixed in my previous post.

Can you confirm that you have meant the angle marked with a '?' in the diagram as angle Z?View attachment 7981

'h' is the space diagonal in the cube shown above. When the space diagonal is projected onto the XZ plane, projected line is at an angle Ø1 with the Z-axis. Similarly, when the space diagonal is projected onto the YZ plane, projected line is at angle Ø2 with the Z-axis.

Now, look at the right angled triangle formed by the sides 'a', 'd' and 'h'. What is the the true angle of the space diagonal with the Z-axis in the plane of the right angled triangle?

When I use the above formula, I am not getting correct results. In a cube, when the space diagonal is projected on to the two planes, I have the 45 degrees on both Ø1 and Ø2. With the formula, I am getting 90 degrees, which is not true.
View attachment 7982View attachment 7983
 

Attachments

  • cube_45.PNG
    cube_45.PNG
    2.3 KB · Views: 125
  • download.png
    download.png
    2.6 KB · Views: 131
  • WNt8J.png
    WNt8J.png
    2.6 KB · Views: 129

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
17
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K