Nepedia
Back to Discover
Fluent Reader
🔢

Line–line intersection

math Maturity 7-9 Next article →

When we draw straight lines, we often wonder where they will meet. In a flat space, this meeting spot is called an intersection.

Line-Line Intersection
Line-Line Intersection

An intersection can be just one single point. Sometimes, two lines are actually the same line, so they touch everywhere. Other times, lines might be parallel and never touch at all. If lines are in 3D space and do not meet, they are called skew lines.

skew lines shortest distance
skew lines shortest distance

Finding these spots is very useful for computers. It helps with computer graphics and planning how things move. It also helps machines detect when two objects might hit each other.

To find where lines meet, we can use math rules. In a flat 2D space, we can use two points to define a line. We can use something called determinants to find the intersection.

Line-Line Intersection
Line-Line Intersection

If the lines are parallel, the math shows a zero in a special spot. We can also look at line segments, which are just parts of a line. To see if the intersection is on the segment, we use special numbers called Bézier parameters. This lets computers quickly check for hits without doing hard division. This makes the math work much faster for many tasks.

Math can also describe lines using equations. We can use slopes and intercepts to write these equations.

Line-Line Intersection
Line-Line Intersection

If we have two equations, we can swap parts around to find the exact point. At the intersection, the coordinates for both lines will be the same. If the slopes are the same, the lines are parallel and do not meet. We can even use something called homogeneous coordinates to make this easier. This method uses 3D points to help solve 2D problems. It is a very clever way to organize the math.

Geometry changes if the space is not flat.

Euclidian and non euclidian geometry
Euclidian and non euclidian geometry

On a sphere, lines are called great circles. These lines are formed where a plane cuts through the center of the sphere. In this spherical geometry, every pair of lines must intersect. They actually meet at two different points on opposite sides of the sphere.

Intersection of two great circles on a sphere
Intersection of two great circles on a sphere

In elliptic geometry, we treat those two points as the same. This means every pair of lines meets at exactly one point. In these spaces, there are no parallel lines at all.

Other spaces behave differently, like hyperbolic geometry. In hyperbolic space, there are many lines that will never meet a given line. This is very different from the flat space we see on paper.

Euclidian and non euclidian geometry
Euclidian and non euclidian geometry

Projective geometry is a special way to study all these different spaces together. It uses something called ideal points to create a single framework. This framework says that any two distinct lines will meet at exactly one point. It even allows parallel lines to meet at a point far away. This helps mathematicians understand all these shapes in one way.

466 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:Line-Line Intersection.png
Line-Line Intersection.png
File:skew_lines_shortest_distance.svg
skew_lines_shortest_distance.svg
File:Euclidian and non euclidian geometry.png
Euclidian and non euclidian geometry.png
File:Intersection of two great circles on a sphere.png
Intersection of two great circles on a sphere.png
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.