Calculate Angle Between 2 Lines in 3D - Easy Formula

  • Thread starter Thread starter ikeoe
  • Start date Start date
  • Tags Tags
    Angle Calculation
Click For Summary

Homework Help Overview

The original poster seeks assistance in calculating the angle between two lines in a three-dimensional space, specifically from points (-x, 0, -y) to (0, 0, 0) and from (0, 0, 0) to (0, x, y). They mention the use of CAD for obtaining the answer but require a formula suitable for their shop team.

Discussion Character

  • Exploratory, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss representing lines as vectors and utilizing the dot product formula to find the angle between them. There are hints regarding the relationship between the dot product and the cosine of the angle.

Discussion Status

Some participants have provided hints and formulas related to the dot product and vector representation, while others have clarified terms like CAD. The discussion is ongoing, with various approaches being explored without a definitive consensus yet.

Contextual Notes

The original poster indicates a preference for a simpler formula, suggesting that the context may involve practical applications in a workshop setting. There is also a mention of specific numerical examples, but no complete solutions have been provided.

ikeoe
Messages
3
Reaction score
0

Homework Statement



Can someone help me to find angle between 2 lines in 3D? I have 2 lines from (-x, 0, -y) to (0, 0, 0) to (0, x, y). I can use CAD to get the answer. But my shop guys will need some kind of formula. The easier way please, thank all.

Homework Equations



Example: (-10, 0, -6) to (0, 0, 0) to (0, 10, 6) is 105.3 degree.

The Attempt at a Solution

 
Physics news on Phys.org
Welcome to PF!

ikeoe said:
Can someone help me to find angle between 2 lines in 3D? I have 2 lines from (-x, 0, -y) to (0, 0, 0) to (0, x, y). I can use CAD to get the answer. But my shop guys will need some kind of formula. The easier way please, thank all.

Hi ikeoe! Welcome to PF!:smile:

(what's CAD? :confused:)

Hint: a.b = |a| |b| cos θ,

so cos θ = a.b/√(a.a)√(b.b) :smile:
 
Say you have three points, A, B, C. You want to find the angle between lines AB and BC.

You can represent lines by vectors. Line AB would be the vector A - B and BC would be the line B - C. Then, to get the angle, you just need to use the dot product formula:

x * y = |x| |y| cos(theta)

Where * is the dot product, |x| is the length of the vector x, and theta is the smallest positive angle between the two vectors.

I'll leave the algebra to you.
 
Thank you, tiny-tim. CAD is Computer Aided Design mostly used from AutoDesk AutoCAD.
 
Great, thanks to Tac-Tics.
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
4K
Replies
3
Views
2K
Replies
1
Views
1K
Replies
13
Views
2K
Replies
21
Views
3K
Replies
64
Views
6K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
10
Views
2K
  • · Replies 10 ·
Replies
10
Views
1K