The angle between two 3D lines

  • Thread starter Thread starter somy
  • Start date Start date
  • Tags Tags
    3d Angle Lines
AI Thread Summary
To calculate the angle between two lines in 3D, use the dot product formula: cos(θ) = (u·v) / (|u||v|), where u and v are direction vectors of the lines. If the lines intersect, this formula provides the angle at the point of intersection. In cases where the lines do not intersect, there is no defined angle between them. The discussion emphasizes the importance of defining vectors correctly to apply the formula effectively. Understanding these concepts is crucial for accurate calculations in coding.
somy
Messages
137
Reaction score
0
Can anyone tell me how can I calculate the angle between two lines in 3D. I need in my codings.
I know it has a simple solution. but I really have mixed up!
Thanks.
 
Mathematics news on Phys.org
If the two lines actually intersect, then the angle is given by
cos(\theta)= \frac{u\cdot v}{|u||v|} where u and v are any vectors pointing in the direction of each line. You can use the point of intersection and one point on each line to define those vectors.

If the line do not intersect (the "typical" case in 3d) then there is no angle between them.
 
Last edited by a moderator:
Thank you. I'll try it!
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...

Similar threads

Replies
8
Views
2K
Replies
4
Views
3K
Replies
2
Views
1K
Replies
3
Views
3K
Replies
2
Views
2K
Replies
13
Views
279
Back
Top