Log in Sign up
Back to Discover
🔢

Line–line intersection

math Maturity 7-9

Lines can cross each other.

Line-Line Intersection.png
Line-Line Intersection.png
They might meet at one spot. Sometimes lines stay apart and never touch. This helps us make computer games. It also helps us plan paths. Can you find two lines that cross?
Intersection of two great circles on a sphere.png
Intersection of two great circles on a sphere.png

47 words

Lines can meet in different ways.

Line-Line Intersection.png
Line-Line Intersection.png
Two lines might cross at one spot. They might also be the same line. If they are the same, they touch everywhere.
Euclidian and non euclidian geometry.png
Euclidian and non euclidian geometry.png
Some lines never touch. These are called parallel lines. In some spaces, like a ball, lines always meet. In other spaces, many lines can miss each other. This helps us with computer graphics. It also helps us plan paths. Math helps us find these spots.

80 words

Imagine drawing two straight lines on a flat piece of paper.

Line-Line Intersection.png
Line-Line Intersection.png
Most of the time, those lines will cross at one single spot. This spot is called the intersection. But lines can also behave in other ways.

Sometimes, two lines are parallel. This means they run in the same direction but never touch. Other times, the lines might be exactly the same. If they are the same line, they touch at every single point.

Euclidian and non euclidian geometry.png
Euclidian and non euclidian geometry.png

In a flat space, we call lines that never meet "skew lines" if they are not in the same plane. This happens in 3D space.

skew lines shortest distance.svg
skew lines shortest distance.svg
You can find the shortest distance between these lines.

Math changes when the space is not flat. On a sphere, like a ball, lines are called great circles.

Intersection of two great circles on a sphere.png
Intersection of two great circles on a sphere.png
In this space, every pair of lines must meet. In other spaces, like hyperbolic geometry, many lines can miss each other. Projective geometry is a way to study all these different shapes together. It even finds spots where parallel lines meet at a point far away.

189 words

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.png
Line-Line Intersection.png
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.svg
skew lines shortest distance.svg
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.png
Line-Line Intersection.png
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.png
Line-Line Intersection.png
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.png
Euclidian and non euclidian geometry.png
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.png
Intersection of two great circles on a sphere.png
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.png
Euclidian and non euclidian geometry.png
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.

491 words

In geometry, an intersection occurs when two lines share common points. This concept is vital for modern technology. Computer graphics use intersections to render images. Motion planning uses them to map paths. Collision detection uses them to stop objects from overlapping.

Line-Line Intersection.png
Line-Line Intersection.png
In Euclidean geometry, which describes flat space, the result of an intersection can be three different things. The lines might coincide, meaning they are the same line and share infinitely many points. They might be parallel, meaning they have the same direction but share no points. Finally, they might intersect at a single point, known as a singleton set.

To understand these outcomes, we must look at how lines exist in space. In a two-dimensional plane, lines are either parallel, coincident, or intersecting. However, in three-dimensional space, a new possibility arises. Lines can be non-coplanar, meaning they do not lie on the same flat surface. These are called skew lines. Skew lines do not intersect and are not parallel.

skew lines shortest distance.svg
skew lines shortest distance.svg
A mathematical way to check if lines are coplanar is to look at a tetrahedron. If you pick two points on each line, the resulting tetrahedron must have zero volume to be coplanar.

Mathematicians use several methods to find these intersection points. In 2D space, a line is often defined by two distinct points. We can use determinants to calculate where these lines meet. If the lines are parallel or coincident, the denominator in these formulas becomes zero. When working with line segments instead of infinite lines, we use Bézier parameters. These parameters are real numbers that describe a position along a segment. By testing specific inequalities, computers can quickly determine if segments intersect without performing slow division.

Line-Line Intersection.png
Line-Line Intersection.png

Algebraic equations also provide a clear way to find intersections. We can represent non-vertical lines using their slopes and y-intercepts. The slope is the gradient, and the intercept is where the line crosses the vertical axis. At the exact point of intersection, the x and y coordinates for both lines are identical. By setting the equations equal to each other, we can solve for the unknown values. Another advanced method uses homogeneous coordinates. This approach represents 2D points as projections of 3D points. By using ordered triples, we can solve 2D intersection problems with great efficiency.

Geometry changes significantly when we move away from flat Euclidean space.

Euclidian and non euclidian geometry.png
Euclidian and non euclidian geometry.png
In spherical geometry, lines are represented by great circles. These are formed where a plane cuts through the center of a sphere. Because of this shape, every pair of lines must intersect. They actually meet at two antipodal points on opposite sides of the sphere.
Intersection of two great circles on a sphere.png
Intersection of two great circles on a sphere.png
In elliptic geometry, we treat these antipodal points as the same point. This means every pair of lines in elliptic geometry intersects at exactly one point. In these curved spaces, parallel lines do not exist.

Hyperbolic geometry offers a different perspective. In this space, there is constant negative Gaussian curvature. This curvature causes lines to behave in ways that defy Euclidean logic. Given a single line and a point not on that line, there are infinitely many lines through that point that will never intersect the first line. Lines in hyperbolic space can be intersecting, asymptotically parallel, or ultraparallel. Ultraparallel lines are disjoint but share a common perpendicular.

Euclidian and non euclidian geometry.png
Euclidian and non euclidian geometry.png

Projective geometry acts as a unifying framework for all these different behaviors. It extends the idea of intersection by adding ideal points, also called points at infinity. This allows mathematicians to describe parallel lines as meeting at a single projective point. In projective geometry, any two distinct lines intersect in exactly one point. This framework lets us study Euclidean, elliptic, and hyperbolic geometries under one system. It focuses on incidence relations rather than measuring distance or angles.

638 words
🖼️ 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
Up Next
🔢
Parallel (geometry)
Math
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.