Ingeometry, anintersection is a point, line, or curve common to two or more objects (such as lines, curves, planes, and surfaces). The simplest case inEuclidean geometry is theline–line intersection between two distinctlines, which either is onepoint (sometimes called avertex) or does not exist (if the lines areparallel). Other types of geometric intersection include:
Determination of the intersection offlats – linear geometric objects embedded in a higher-dimensional space – is a simple task oflinear algebra, namely the solution of asystem of linear equations. In general the determination of an intersection leads tonon-linear equations, which can besolved numerically, for example usingNewton iteration. Intersection problems between a line and aconic section (circle, ellipse, parabola, etc.) or aquadric (sphere, cylinder, hyperboloid, etc.) lead toquadratic equations that can be easily solved. Intersections between quadrics lead toquartic equations that can be solvedalgebraically.
For the determination of the intersection point of two non-parallel lines
one gets, fromCramer's rule or by substituting out a variable, the coordinates of the intersection point :
(If the lines are parallel and these formulas cannot be used because they involve dividing by 0.)
For two non-parallelline segments and there is not necessarily an intersection point (see diagram), because the intersection point of the corresponding lines need not to be contained in the line segments. In order to check the situation one uses parametric representations of the lines:
The line segments intersect only in a common point of the corresponding lines if the corresponding parameters fulfill the condition. The parameters are the solution of the linear system
It can be solved fors andt using Cramer's rule (seeabove). If the condition is fulfilled one inserts or into the corresponding parametric representation and gets the intersection point.
Example: For the line segments and one gets the linear system
and. That means: the lines intersect at point.
Remark: Considering lines, instead of segments, determined by pairs of points, each condition can be dropped and the method yields the intersection point of the lines (seeabove).
For the intersection of
one solves the line equation forx ory andsubstitutes it into the equation of the circle and gets for the solution (using the formula of a quadratic equation) with
if If this condition holds with strict inequality, there are two intersection points; in this case the line is called asecant line of the circle, and the line segment connecting the intersection points is called achord of the circle.
If holds, there exists only one intersection point and the line is tangent to the circle. If the weak inequality does not hold, the line does not intersect the circle.
If the circle's midpoint is not the origin, see.[1] The intersection of a line and a parabola or hyperbola may be treated analogously.
The determination of the intersection points of two circles
can be reduced to the previous case of intersecting a line and a circle. By subtraction of the two given equations one gets the line equation:
This special line is theradical line of the two circles.
Special case :
In this case the origin is the center of the first circle and the second center lies on the x-axis (s. diagram). The equation of the radical line simplifies to and the points of intersection can be written as with
In case of the circles have no points in common.
In case of the circles have one point in common and the radical line is a common tangent.
Any general case as written above can be transformed by a shift and a rotation into the special case.
The intersection of twodisks (the interiors of the two circles) forms a shape called alens.
The problem of intersection of an ellipse/hyperbola/parabola with anotherconic section leads to asystem of quadratic equations, which can be solved in special cases easily by elimination of one coordinate. Special properties of conic sections may be used to obtain asolution. In general the intersection points can be determined by solving the equation by a Newton iteration. If a) both conics are given implicitly (by an equation) a 2-dimensional Newton iteration b) one implicitly and the other parametrically given a 1-dimensional Newton iteration is necessary. See next section.
Two curves in (two-dimensional space), which are continuously differentiable (i.e. there is no sharp bend),have an intersection point, if they have a point of the plane in common and have at this point (see diagram):
If both the curves have a pointS and the tangent line there in common but do not cross each other, they are justtouching at pointS.
Because touching intersections appear rarely and are difficult to deal with, the following considerations omit this case. In any case below all necessary differential conditions are presupposed. The determination of intersection points always leads to one or two non-linear equations which can be solved by Newton iteration. A list of the appearing cases follows:
Any Newton iteration needs convenient starting values, which can be derived by a visualization of both the curves. A parametrically or explicitly given curve can easily be visualized, because to any parametert orx respectively it is easy to calculate the corresponding point. For implicitly given curves this task is not as easy. In this case one has to determine a curve point with help of starting values and an iteration. See.[2]
Examples:
If one wants to determine the intersection points of twopolygons, one can check the intersection of any pair of line segments of the polygons (seeabove). For polygons with many segments this method is rather time-consuming. In practice one accelerates the intersection algorithm by usingwindow tests. In this case one divides the polygons into small sub-polygons and determines the smallest window (rectangle with sides parallel to the coordinate axes) for any sub-polygon. Before starting the time-consuming determination of the intersection point of two line segments any pair of windows is tested for common points. See.[3]
In 3-dimensional space there are intersection points (common points) between curves and surfaces. In the following sections we considertransversal intersection only.
The intersection of a line and a planeingeneral position in three dimensions is a point.
Commonly a line in space is represented parametrically and a plane by an equation. Inserting the parameter representation into the equation yields the linear equation
for parameter of the intersection point.
If the linear equation has no solution, the line either lies on the plane or is parallel to it.
If a line is defined by two intersecting planes and should be intersected by a third plane, the common intersection point of the three planes has to be evaluated.
Three planes with linear independent normal vectors have the intersection point
For the proof one should establish using the rules of ascalar triple product. If the scalar triple product equals to 0, then planes either do not have the triple intersection or it is a line (or a plane, if all three planes are the same).
Analogously to the plane case the following cases lead to non-linear systems, which can be solved using a 1- or 3-dimensional Newton iteration.[4]
Example:
Aline–sphere intersection is a simple special case.
Like the case of a line and a plane, the intersection of a curve and a surfaceingeneral position consists of discrete points, but a curve may be partly or totally contained in a surface.
Two transversally intersecting surfaces give anintersection curve. The most simple case is the intersection line of two non-parallel planes.
When the intersection of a sphere and a plane is not empty or a single point, it is a circle. This can be seen as follows:
LetS be a sphere with centerO,P a plane which intersectsS. DrawOE perpendicular toP and meetingP atE. LetA andB be any two different points in the intersection. ThenAOE andBOE are right triangles with a common side,OE, and hypotenusesAO andBO equal. Therefore, the remaining sidesAE andBE are equal. This proves that all points in the intersection are the same distance from the pointE in the planeP, in other words all points in the intersection lie on a circleC with centerE.[5] This proves that the intersection ofP andS is contained inC. Note thatOE is the axis of the circle.
Now consider a pointD of the circleC. SinceC lies inP, so doesD. On the other hand, the trianglesAOE andDOE are right triangles with a common side,OE, and legsEA andED equal. Therefore, the hypotenusesAO andDO are equal, and equal to the radius ofS, so thatD lies inS. This proves thatC is contained in the intersection ofP andS.
As a corollary, on a sphere there is exactly one circle that can be drawn through three given points.[6]
The proof can be extended to show that the points on a circle are all a common angular distance from one of its poles.[7]
Compare alsoconic sections, which can produceovals.
To show that a non-trivial intersection of two spheres is a circle, assume (without loss of generality) that one sphere (with radius) is centered at the origin. Points on this sphere satisfy
Also without loss of generality, assume that the second sphere, with radius, is centered at a point on the positive x-axis, at distance from the origin. Its points satisfy
The intersection of the spheres is the set of points satisfying both equations. Subtracting the equations gives
In the singular case, the spheres are concentric. There are two possibilities: if, the spheres coincide, and the intersection is the entire sphere; if, the spheres are disjoint and the intersection is empty.Whena is nonzero, the intersection lies in a vertical plane with this x-coordinate, which may intersect both of the spheres, be tangent to both spheres, or external to both spheres.The result follows from the previous proof for sphere-plane intersections.
a grid of intersection routines for various popular objects, pointing to resources in books and on the web.