◀ Back to Note

Tony's Intertwingled Memex • Reference Manual

Relationships Between Lines in Space

Formulas & Definitions
Core Definition

In three-dimensional space (R3\mathbb{R}^3R3), two lines L1L_1L1​ and L2L_2L2​ with direction vectors u⃗\vec{u}u and v⃗\vec{v}v exhibit exactly one of four fundamental geometric relationships:

Relationship Direction Vectors Parallel? (u⃗=kv⃗\vec{u} = k\vec{v}u=kv) Share a Common Point? Geometric Description
Equal (Coincident) Yes Yes (infinitely many) Same line in space
Parallel (Distinct) Yes No Lie in the same plane, never cross
Intersecting No Yes (exactly one) Cross at a unique point in a shared plane
Skew No No Never cross, lie in non-coplanar parallel planes

Concept Explanation

The Four Spatial Geometries

   PARALLEL (Distinct)             INTERSECTING                    SKEW
   ------------------>             \        /                ------------------> (Plane 1)
                                    \      /
   ------------------>               \    /
                                      \  /
                                       \/ (Shared point)
                                      /  \
                                     /    \                  ------------------> (Plane 2)
                                    /      \                      (Different levels)
  1. Parallel vs. Non-Parallel Test:
    • Two direction vectors u⃗=⟨u1,u2,u3⟩\vec{u} = \langle u_1, u_2, u_3 \rangleu=⟨u1​,u2​,u3​⟩ and v⃗=⟨v1,v2,v3⟩\vec{v} = \langle v_1, v_2, v_3 \ranglev=⟨v1​,v2​,v3​⟩ are parallel if and only if their corresponding components have equal constant ratios:
      u1v1=u2v2=u3v3=k\frac{u_1}{v_1} = \frac{u_2}{v_2} = \frac{u_3}{v_3} = kv1​u1​​=v2​u2​​=v3​u3​​=k
  2. Intersection Test (The 2-Parameter Rule):
    • When checking if two lines cross, you MUST assign different parameter variables to each line (e.g., ttt for L1L_1L1​ and sss for L2L_2L2​).
    • Using the same parameter ttt incorrectly tests whether two moving particles would collide at the exact same moment, rather than whether their static spatial paths cross.

Systematic 2-Step Decision Algorithm

                  [Are Direction Vectors Parallel?]
                             /         \
                           YES          NO
                           /             \
             [Do they share a point?]   [Set 3 parametric eqns equal: x(t)=x(s), y(t)=y(s), z(t)=z(s)]
                    /       \           [Solve 2 eqns for t & s; test in 3rd eqn]
                  YES        NO                  /                      \
                  /           \             CONSISTENT              INCONSISTENT
                EQUAL       PARALLEL            /                        \
                                          INTERSECTING                   SKEW
  1. Step 1: Check Direction Vector Proportionality:
    • If u⃗=kv⃗\vec{u} = k\vec{v}u=kv: Test if a known point P1∈L1P_1 \in L_1P1​∈L1​ lies on L2L_2L2​. If yes →\to→ Equal; if no →\to→ Parallel.
    • If u⃗≠kv⃗\vec{u} \neq k\vec{v}u=kv: Proceed to Step 2.
  2. Step 2: Solve the Linear System with Independent Parameters:
    • Equate parametric components:
      x1(t)=x2(s),y1(t)=y2(s),z1(t)=z2(s)x_1(t) = x_2(s), \quad y_1(t) = y_2(s), \quad z_1(t) = z_2(s)x1​(t)=x2​(s),y1​(t)=y2​(s),z1​(t)=z2​(s)
    • Pick two equations and solve for the unique values of ttt and sss.
    • Substitute ttt and sss into the third equation:
      • If both sides match (LS=RS\text{LS} = \text{RS}LS=RS)   ⟹  \implies⟹ System is consistent →\to→ Intersecting.
      • If both sides contradict (LS≠RS\text{LS} \neq \text{RS}LS=RS)   ⟹  \implies⟹ System is inconsistent →\to→ Skew.

Engineering Applications

  • Computer Graphics & Ray Tracing: Detecting intersections between virtual light/laser rays and object bounding geometry (hitboxes) to trigger rendering effects or gameplay damage.
  • Air Traffic Control Conflict Management: Classifying aircraft flight corridors. Skew lines confirm altitude or heading separation, preventing mid-air collisions.
  • Structural Architecture & Truss Design: Ensuring structural steel diagonals cross at unified node joints (intersecting) or pass clear through tiered floor spaces (skew).

Example Problems

Example 1: Intersecting Lines

Classify the relationship between L1:x=1+2t,y=−2+3t,z=4−tL_1: x = 1 + 2t, y = -2 + 3t, z = 4 - tL1​:x=1+2t,y=−2+3t,z=4−t and L2:x=−1+s,y=2−s,z=1+2sL_2: x = -1 + s, y = 2 - s, z = 1 + 2sL2​:x=−1+s,y=2−s,z=1+2s.

Solution
  1. Compare Direction Vectors: u⃗=⟨2,3,−1⟩\vec{u} = \langle 2, 3, -1 \rangleu=⟨2,3,−1⟩ and v⃗=⟨1,−1,2⟩\vec{v} = \langle 1, -1, 2 \ranglev=⟨1,−1,2⟩. Ratios: 21≠3−1  ⟹  \frac{2}{1} \neq \frac{3}{-1} \implies12​=−13​⟹ Not parallel.
  2. Set Up 3-Equation System:
    1. 1+2t=−1+s  ⟹  s=2t+21 + 2t = -1 + s \implies s = 2t + 21+2t=−1+s⟹s=2t+2
    2. −2+3t=2−s-2 + 3t = 2 - s−2+3t=2−s
    3. 4−t=1+2s4 - t = 1 + 2s4−t=1+2s
  3. Solve Using Eq (1) & (2):
    −2+3t=2−(2t+2)=−2t  ⟹  5t=0  ⟹  t=0-2 + 3t = 2 - (2t + 2) = -2t \implies 5t = 0 \implies t = 0−2+3t=2−(2t+2)=−2t⟹5t=0⟹t=0
    s=2(0)+2=2s = 2(0) + 2 = 2s=2(0)+2=2
  4. Check in Third Equation (3):
    LS: 4−(0)=4,RS: 1+2(2)=5\text{LS: } 4 - (0) = 4, \quad \text{RS: } 1 + 2(2) = 5LS: 4−(0)=4,RS: 1+2(2)=5
    Since 4≠54 \neq 54=5, the system is inconsistent   ⟹  \implies⟹ the lines are Skew.

Connections & References

  • Parent Concepts: Vectors in 2D and 3D | Equations of Lines in 3D
  • Related Notes: Distance Between a Point and a Line in Space | Cross Product
  • Course Sessions: Calc-3 Session 04