Finding the line along the intersection of two planes
Data Structures & Algorithms practice on Codemia
Step through 300 algorithm problems with animated visualisers that show the data structure changing as the code runs.
Introduction
Finding the line of intersection between two planes is a common problem in vector calculus and geometry. It has applications in computer graphics, engineering, and three-dimensional modeling. This article will provide a thorough explanation of the mathematical process involved, supported by a clear example. We'll also include a table summarizing the key points and formulae involved in the process.
Theoretical Background
Equation of a Plane
A plane in three-dimensional space can be defined by a linear equation of the form:
where is the normal vector to the plane, and is the perpendicular distance from the origin to the plane along the normal.
Intersection of Two Planes
Let's consider two planes defined by the equations:
The intersection of these two planes is a line if they are not parallel. When the planes intersect, their normal vectors and are not scalar multiples of each other.
Determining the Line of Intersection
To find the line of intersection of two planes:
- Calculate the Direction Vector: The cross product of the normal vectors of the two planes will give the direction vector of the line of intersection. Symbolically, it is:This vector will lie in both planes.
- Find a Specific Point on the Line: To find a point through which the line passes, solve the system of equations given by the two plane equations. This system can be solved using substitution or elimination by treating one variable in terms of the others or setting one variable equal to a constant value. The solution will be the coordinates of a point on the line.
- Equation of the Line: Using the direction vector and a specific point , the parametric equation for the line is given by:Where is a parameter.
Example
Consider the intersection of the planes:
Step 1: Calculate the Direction Vector
• The normal vectors are and . • The cross product is:
Step 2: Find a Specific Point on the Line
• Set to simplify calculations. Then solve:
• From Plane 1: • From Plane 2:
Solving these:
- Substituting into Plane 2:
• Hence, a specific point on the line is .
Step 3: Equation of the Line
• The parametric form is:
• This can be expressed in parametric equations as:
Summary Table
| Component | Key Points/Formula |
| Plane Equation | |
| Direction Vector | |
| Example Direction Vector | |
| Parametric Line Equation | |
| Example Line Point | |
| Parametric Equations | \begin{align*} & x(t) = \frac{4}{3} - 2t \\ & y(t) = \frac{7}{3} + 5t \\ & z(t) = -3t \end{align*} |
Additional Considerations
• Parallel and Coincident Planes: If the directional vector is the zero vector, the planes are either parallel or coincident.
• Applications: This calculation is particularly useful in 3D computer graphics where determining line intersections is crucial for rendering and computational geometry algorithms.
This detailed procedure serves as a comprehensive guide to understanding and implementing the line intersection of two planes, enhancing both mathematical understanding and practical application skills.
Related reading
- Finding the Nth Twin Prime
- Finding the number of digits of an integer
- Finding the smallest set of rectangles that covers the given rectilinear simple polygons
- Finding the squares in a plane given n points
- finding the width of a binary tree
- Finding unreachable sections of a 2D map
- Finding whether a point lies inside a rectangle or not
- First appearance in Stern's Diatomic Sequence

DSA Fundamentals
Master algorithmic patterns and data structures through hands-on LeetCode-style problems - from arrays and hashing to dynamic programming and advanced graphs.
View the courseTrack what you have practised
A free account saves your progress, solutions and study plan across every problem on Codemia.
Data Structures & Algorithms practice on Codemia
Step through 300 algorithm problems with animated visualisers that show the data structure changing as the code runs.