Calculate Angle Between 2 Lines in 3D - Easy Formula

  • Thread starter Thread starter ikeoe
  • Start date Start date
  • Tags Tags
    Angle Calculation
AI Thread Summary
To calculate the angle between two lines in 3D, use the dot product formula: cos θ = (a · b) / (|a| |b|), where a and b are the vectors representing the lines. For lines defined by points A, B, and C, the vectors can be formed as AB = A - B and BC = B - C. The angle θ can then be derived from the dot product and the magnitudes of the vectors. This method provides a straightforward formula for determining the angle without relying on CAD tools. Understanding vector representation is essential for applying this formula effectively.
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.
 
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...
Back
Top