Submitted Successfully!
To reward your contribution, here is a gift for you: A free trial for our video production service.
Thank you for your contribution! You can also upload a video entry or images related to this topic.
Version Summary Created by Modification Content Size Created at Operation
1 handwiki -- 2170 2022-10-31 01:35:33 |
2 update figures + 77 word(s) 2247 2022-10-31 10:27:09 | |
3 update figure Meta information modification 2247 2022-10-31 10:28:21 |

# Video Upload Options

Do you have a full video?

# Confirm

Are you sure to Delete?
Cite
If you have any further questions, please contact Encyclopedia Editorial Office.
HandWiki. Intersection (Euclidean Geometry). Encyclopedia. Available online: https://encyclopedia.pub/entry/32060 (accessed on 24 April 2024).
HandWiki. Intersection (Euclidean Geometry). Encyclopedia. Available at: https://encyclopedia.pub/entry/32060. Accessed April 24, 2024.
HandWiki. "Intersection (Euclidean Geometry)" Encyclopedia, https://encyclopedia.pub/entry/32060 (accessed April 24, 2024).
HandWiki. (2022, October 31). Intersection (Euclidean Geometry). In Encyclopedia. https://encyclopedia.pub/entry/32060
HandWiki. "Intersection (Euclidean Geometry)." Encyclopedia. Web. 31 October, 2022.
Intersection (Euclidean Geometry)

In geometry, an intersection is a point, line, or curve common to two or more objects (such as lines, curves, planes, and surfaces). The simplest case in Euclidean geometry is the intersection of two distinct lines, which either is one point or does not exist if the lines are parallel. Determination of the intersection of flats – linear geometric objects embedded in a higher-dimensional space – is a simple task of linear algebra, namely the solution of a system of linear equations. In general the determination of an intersection leads to non-linear equations, which can be solved numerically, for example using Newton iteration. Intersection problems between a line and a conic section (circle, ellipse, parabola, etc.) or a quadric (sphere, cylinder, hyperboloid, etc.) lead to quadratic equations that can be easily solved. Intersections between quadrics lead to quartic equations that can be solved algebraically.

ellipse hyperboloid quartic equations

## 1. On a Plane

### 1.1. Two Lines

For the determination of the intersection point of two non-parallel lines

• $\displaystyle{ a_1x+b_1y=c_1, \ a_2x+b_2y=c_2 }$

one gets, from Cramer's rule or by substituting out a variable, the coordinates of the intersection point $\displaystyle{ (x_s,y_s) }$ :

$\displaystyle{ x_s=\frac{c_1b_2-c_2b_1}{a_1b_2-a_2b_1} , \quad y_s=\frac{a_1c_2-a_2c_1}{a_1b_2-a_2b_1}. \ }$

(If $\displaystyle{ a_1b_2-a_2b_1=0 }$ the lines are parallel and these formulas cannot be used because they involve dividing by 0.)

### 1.2. Two Line Segments

Intersection of two line segments. https://handwiki.org/wiki/index.php?curid=2019936

For two non-parallel line segments $\displaystyle{ (x_1,y_1),(x_2,y_2) }$ and $\displaystyle{ (x_3,y_3),(x_4,y_4) }$ there is not necessarily an intersection point (see diagram), because the intersection point $\displaystyle{ (x_0,y_0) }$ 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:

$\displaystyle{ (x(s),y(s))=(x_1+s(x_2-x_1),y_1+s(y_2-y_1)), }$
$\displaystyle{ (x(t),y(t))=(x_3+t(x_4-x_3),y_3+t(y_4-y_3)). }$

The line segments intersect only in a common point $\displaystyle{ (x_0,y_0) }$ of the corresponding lines if the corresponding parameters $\displaystyle{ s_0,t_0 }$ fulfill the condition $\displaystyle{ 0\le s_0,t_0 \le 1 }$. The parametrs $\displaystyle{ s_0,t_0 }$ are the solution of the linear system

$\displaystyle{ s(x_2-x_1)-t(x_4-x_3)=x_3-x_1, }$
$\displaystyle{ s(y_2-y_1)-t(y_4-y_3)=y_3-y_1 \ . }$

It can be solved for s and t using Cramer's rule (see above). If the condition $\displaystyle{ 0\le s_0,t_0 \le 1 }$ is fulfilled one inserts $\displaystyle{ s_0 }$ or $\displaystyle{ t_0 }$ into the corresponding parametric representation and gets the intersection point $\displaystyle{ (x_0,y_0) }$.

Example: For the line segments $\displaystyle{ (1,1),(3,2) }$ and $\displaystyle{ (1,4),(2,-1) }$ one gets the linear system

$\displaystyle{ 2s-t=0 }$
$\displaystyle{ s+5t=3 }$

and $\displaystyle{ s_0=\tfrac{3}{11}, t_0=\tfrac{6}{11} }$. That means: the lines intersect at point $\displaystyle{ (\tfrac{17}{11},\tfrac{14}{11}) }$.

Remark: Considering lines, instead of segments, determined by pairs of points, each condition $\displaystyle{ 0\le s_0,t_0 \le 1 }$ can be dropped and the method yields the intersection point of the lines (see above).

Line–circle intersection. https://handwiki.org/wiki/index.php?curid=2076649

### 1.3. A Line and a Circle

For the intersection of

• line $\displaystyle{ ax+by=c }$ and circle $\displaystyle{ x^2+y^2=r^2 }$

one solves the line equation for x or y and substitutes it into the equation of the circle and gets for the solution (using the formula of a quadratic equation) $\displaystyle{ (x_1,y_1),(x_2,y_2) }$ with

$\displaystyle{ x_{1/2}= \frac{ac\pm b\sqrt{r^2(a^2+b^2)-c^2}}{a^2+b^2} \ , }$
$\displaystyle{ y_{1/2}= \frac{bc\mp a\sqrt{r^2(a^2+b^2)-c^2}}{a^2+b^2} \ , }$

if $\displaystyle{ r^2(a^2+b^2)-c^2\ge0 \ . }$ If this condition holds with strict inequality, there are two intersection points; in this case the line is called a secant line of the circle, and the line segment connecting the intersection points is called a chord of the circle.

If $\displaystyle{ r^2(a^2+b^2)-c^2=0 }$ 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.

### 1.4. Two Circles

circle–circle intersection. https://handwiki.org/wiki/index.php?curid=1997245
circle–ellipse intersection. https://handwiki.org/wiki/index.php?curid=2051685

The determination of the intersection points of two circles

• $\displaystyle{ (x-x_1)^2+(y-y_1)^2=r_1^2 ,\ \quad (x-x_2)^2+(y-y_2)^2=r_2^2 }$

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:

$\displaystyle{ 2(x_2-x_1)x+2(y_2-y_1)y=r_1^2-x_1^2-y_1^2-r_2^2+x_2^2+y_2^2. }$

The intersection of two disks (the interiors of the two circles) forms a shape called a lens.

### 1.5. Two Conic Sections

The problem of intersection of an ellipse/hyperbola/parabola with another conic section leads to a system 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 a solution. 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.

### 1.6. Two Smooth Curves

A transversal intersection of two curves. https://handwiki.org/wiki/index.php?curid=2033248
touching intersection (left), touching (right). https://handwiki.org/wiki/index.php?curid=2005967

Two curves in $\displaystyle{ \R^2 }$ (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

a: different tangent lines (transversal intersection), or
b: the tangent line in common and they are crossing each other (touching intersection, see diagram).

If both the curves have a point S and the tangent line there in common but do not cross each other, they are just touching at point S.

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:

intersection of a parametric curve and an implicit curve. https://handwiki.org/wiki/index.php?curid=2031861
intersection of two implicit curves. https://handwiki.org/wiki/index.php?curid=2009831
• If both curves are explicitly given: $\displaystyle{ y=f_1(x), \ y=f_2(x) }$, equating them yields the equation
$\displaystyle{ f_1(x)=f_2(x) \ . }$
• If both curves are parametrically given: $\displaystyle{ C_1: (x_1(t),y_1(t)), \ C_2: (x_2(s),y_2(s)). }$
Equating them yields two equations in two variables:
$\displaystyle{ x_1(t)=x_2(s), \ y_1(t)=y_2(s) \ . }$
• If one curve is parametrically and the other implicitly given: $\displaystyle{ C_1: (x_1(t),y_1(t)), \ C_2: f(x,y)=0. }$
This is the simplest case besides the explicit case. One has to insert the parametric representation of $\displaystyle{ C_1 }$ into the equation $\displaystyle{ f(x,y)=0 }$ of curve $\displaystyle{ C_2 }$ and one gets the equation:
$\displaystyle{ f(x_1(t),y_2(t))=0 \ . }$
• If both curves are implicitly given: $\displaystyle{ C_1: f_1(x,y)=0, \ C_2: f_2(x,y)=0. }$
Here, an intersection point is a solution of the system
$\displaystyle{ f_1(x,y)=0, \ f_2(x,y)=0 \ . }$

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 parameter t or x 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:

1: $\displaystyle{ C_1: (t,t^3) }$ and circle $\displaystyle{ C_2: (x-1)^2+(y-1)^2-10=0 }$ (see diagram).
The Newton iteration $\displaystyle{ t_{n+1}:=t_n-\frac{f(t_n)}{f'(t_n)} }$ for function
$\displaystyle{ f(t)=(t-1)^2+(t^3-1)^2-10 }$ has to be done. As start values one can choose −1 and 1.5.
The intersection points are: (−1.1073, −1.3578), (1.6011, 4.1046)
2:$\displaystyle{ C_1: f_1(x,y)=x^4+y^4-1=0, }$
$\displaystyle{ C_2: f_2(x,y)=(x-0.5)^2+(y-0.5)^2-1=0 }$ (see diagram).
The Newton iteration
$\displaystyle{ {x_{n+1}\choose y_{n+1}}={x_{n}+\delta_x\choose y_n+\delta_y} }$ has to be performed, where $\displaystyle{ {\delta_x \choose \delta_y} }$ is the solution of the linear system
$\displaystyle{ \begin{pmatrix} \frac{\partial f_1}{\partial x} & \frac{\partial f_1}{\partial y} \\ \frac{\partial f_2}{\partial x} & \frac{\partial f_2}{\partial y} \end{pmatrix}{\delta_x \choose \delta_y}={-f_1\choose -f_2} }$ at point $\displaystyle{ (x_n,y_n) }$. As starting values one can choose(−0.5, 1) and (1, −0.5).
The linear system can be solved by Cramer's rule.
The intersection points are (−0.3686, 0.9953) and (0.9953, −0.3686).

### 1.7. Two Polygons

intersection of two polygons: window test. https://handwiki.org/wiki/index.php?curid=2047030

If one wants to determine the intersection points of two polygons, one can check the intersection of any pair of line segments of the polygons (see above). For polygons with many segments this method is rather time-consuming. In practice one accelerates the intersection algorithm by using window 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]

## 2. In Space (Three Dimensions)

In 3-dimensional space there are intersection points (common points) between curves and surfaces. In the following sections we consider transversal intersection only.

### 2.1. A Line and a Plane

Line–plane intersection. https://handwiki.org/wiki/index.php?curid=2077863

The intersection of a line and a plane in general position in three dimensions is a point.

Commonly a line in space is represented parametrically $\displaystyle{ (x(t),y(t),z(t)) }$ and a plane by an equation $\displaystyle{ ax+by+cz=d }$. Inserting the parameter representation into the equation yields the linear equation

$\displaystyle{ ax(t)+by(t)+cz(t)=d\ , }$

for parameter $\displaystyle{ t_0 }$ of the intersection point $\displaystyle{ (x(t_0),y(t_0),z(t_0)) }$.

If the linear equation has no solution, the line either lies on the plane or is parallel to it.

### 2.2. Three Planes

If a line is defined by two intersecting planes $\displaystyle{ \varepsilon_i: \ \vec n_i\cdot\vec x=d_i, \ i=1,2 }$ and should be intersected by a third plane $\displaystyle{ \varepsilon_3: \ \vec n_3\cdot\vec x=d_3 }$, the common intersection point of the three planes has to be evaluated.

Three planes $\displaystyle{ \varepsilon_i: \ \vec n_i\cdot\vec x=d_i, \ i=1,2,3 }$ with linear independent normal vectors $\displaystyle{ \vec n_1,\vec n_2, \vec n_3 }$ have the intersection point

$\displaystyle{ \vec p_0=\frac{d_1(\vec n_2\times \vec n_3) +d_2(\vec n_3\times \vec n_1) + d_3(\vec n_1\times \vec n_2)}{\vec n_1\cdot(\vec n_2\times \vec n_3)} \ . }$

For the proof one should establish $\displaystyle{ \vec n_i\cdot\vec p_0=d_i, \ i=1,2,3 , }$ using the rules of a scalar 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).

### 2.3. A Curve and a Surface

intersection of curve $\displaystyle{ (t,t^2,t^3) }$ with surface $\displaystyle{ x^4+y^4+z^4=1 }$ https://handwiki.org/wiki/index.php?curid=2074968

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]

• parametric curve $\displaystyle{ C: (x(t),y(t),z(t)) }$ and
parametric surface $\displaystyle{ S: (x(u,v),y(u,v),z(u,v))\ , }$
• parametric curve $\displaystyle{ C: (x(t),y(t),z(t)) }$ and
implicit surface $\displaystyle{ S: f(x,y,z)=0\ . }$

Example:

parametric curve $\displaystyle{ C: (t,t^2,t^3) }$ and
implicit surface $\displaystyle{ S: x^4+y^4+z^4-1=0 }$ (s. picture).
The intersection points are: (−0.8587, 0.7374, −0.6332), (0.8587, 0.7374, 0.6332).

A line–sphere intersection is a simple special case.

Like the case of a line and a plane, the intersection of a curve and a surface in general position consists of discrete points, but a curve may be partly or totally contained in a surface.

### 2.4. Two Surfaces

Two transversally intersecting surfaces give an intersection curve. The most simple case the intersection line of two non-parallel planes.

### References

1. Erich Hartmann: Geometry and Algorithms for COMPUTER AIDED DESIGN. Lecture notes, Technische Universität Darmstadt, October 2003, p. 17 http://www.mathematik.tu-darmstadt.de/~ehartmann/cdgen0104.pdf
2. Erich Hartmann: Geometry and Algorithms for COMPUTER AIDED DESIGN. Lecture notes, Technische Universität Darmstadt, October 2003, p. 33 http://www.mathematik.tu-darmstadt.de/~ehartmann/cdgen0104.pdf
3. Erich Hartmann: CDKG: Computerunterstützte Darstellende und Konstruktive Geometrie. Lecture notes, TU Darmstadt, 1997, p. 79 (PDF; 3,4 MB) http://www.mathematik.tu-darmstadt.de/~ehartmann/cdg-skript-1998.pdf
4. Erich Hartmann: Geometry and Algorithms for COMPUTER AIDED DESIGN. Lecture notes, Technische Universität Darmstadt, October 2003, p. 93 http://www.mathematik.tu-darmstadt.de/~ehartmann/cdgen0104.pdf
More
Information
Subjects:
Contributor MDPI registered users' name will be linked to their SciProfiles pages. To register with us, please refer to https://encyclopedia.pub/register :
View Times: 808
Entry Collection:
Revisions: 3 times (View History)
Update Date: 31 Oct 2022
1000/1000