Line-plane intersection

Line-plane intersection


1. No intersection.
2. Point intersection.
3. Line intersection.
In analytic geometry, the intersection of a line and a plane can be the empty set, a point, or a line. Distinguishing these cases, and determining equations for the point and line in the latter cases have use, for example, in computer graphics, motion planning, and collision detection.

Parametric form

A line is described by all points that are a given direction from a point. Thus a line can be represented as

:mathbf{l}_a + (mathbf{l}_b - mathbf{l}_a)t, quad tin mathbb{R},

where mathbf{l}_a=(x_a, y_a, z_a) and mathbf{l}_b=(x_b, y_b, z_b) are two distinct points along the line.

Similarly a plane can be represented as

:mathbf{p}_0 + (mathbf{p}_1-mathbf{p}_0)u + (mathbf{p}_2-mathbf{p}_0)v, quad u,vinmathbb{R}

where mathbf{p}_k=(x_k,y_k,z_k),k=0,1,2 are three points in the plane which are not co-linear.

The point at which the line intersects the plane is therefore described by setting the line equal to the plane in the parametric equation::mathbf{l}_a + (mathbf{l}_b - mathbf{l}_a)t = mathbf{p}_0 + (mathbf{p}_1-mathbf{p}_0)u + (mathbf{p}_2-mathbf{p}_0)vThis can be simplified to:mathbf{l}_a - mathbf{p}_0 = (mathbf{l}_a - mathbf{l}_b)t + (mathbf{p}_1-mathbf{p}_0)u + (mathbf{p}_2-mathbf{p}_0)v,which can be expressed in matrix form as:: egin{bmatrix} x_a - x_0 \ y_a - y_0 \ z_a - z_0 end{bmatrix} = egin{bmatrix} x_a - x_b & x_1 - x_0 & x_2 - x_0 \ y_a - y_b & y_1 - y_0 & y_2 - y_0 \ z_a - z_b & z_1 - z_0 & z_2 - z_0 end{bmatrix} egin{bmatrix} t \ u \ v end{bmatrix}

The point of intersection is then equal to:mathbf{l}_a + (mathbf{l}_b - mathbf{l}_a)t

If the line is parallel to the plane then the vectors mathbf{l}_b - mathbf{l}_a, mathbf{p}_1-mathbf{p}_0, and mathbf{p}_2-mathbf{p}_0 will be linearly dependent and the matrix will be singular. This situation will also occur when the line lies in the plane.

If the solution satisfies the condition t in [0,1] ,, then the intersection point is on the line between mathbf{l}_a and mathbf{l}_b.

If the solution satisfies:u,v in [0,1] , ;;; (u+v) leq 1,then the intersection point is in the plane inside the triangle spanned by the three points mathbf{p}_0, mathbf{p}_1 and mathbf{p}_2.

This problem is typically solved by expressing it in matrix form, and inverting it:: egin{bmatrix} t \ u \ v end{bmatrix} = egin{bmatrix} x_a - x_b & x_1 - x_0 & x_2 - x_0 \ y_a - y_b & y_1 - y_0 & y_2 - y_0 \ z_a - z_b & z_1 - z_0 & z_2 - z_0 end{bmatrix}^{-1} egin{bmatrix} x_a - x_0 \ y_a - y_0 \ z_a - z_0 end{bmatrix}.

Algebraic form

The plane can also be defined by :mathbf{p}cdotmathbf{n}=dwhere mathbf{p}=(x,y,z) is a point on the plane and mathbf{n} is a normal to the plane. A normal can be found by taking the cross product (mathbf{p}_1-mathbf{p}_0) imes (mathbf{p}_2 - mathbf{p}_0) and d=mathbf{p}_0cdotmathbf{n}.

Combining with the equation for the line gives:(mathbf{l}_a+t(mathbf{l}_b-mathbf{l}_a))cdotmathbf{n}=d,and :t={d-mathbf{l}_acdotmathbf{n} over (mathbf{l}_b-mathbf{l}_a)cdotmathbf{n.

In term of coordinates, if mathbf{n}=(a,b,c) then the equation of the plane is:a x+b y+c z=dand:t={d-a x_a - b y_a - c z_a over a (x_b-x_a)+ b (y_b-y_a) + c(z_b-z_a)}.

If the direction of the line (mathbf{l}_b-mathbf{l}_a) is perpendicular to the normal then the denominator will be zero. If the line lies in the plane then both numerator and denominator will be zero, the equation is satisfied by all values of "t".

Uses

In the ray tracing method of computer graphics a surface can be represented as a set of pieces of planes. The intersection of a ray of light with each plane is used to produce an image of the surface.

The algorithm can be generalised to cover intersection with other planar figures, in particular, the intersection of a polyhedron with a line.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Line–sphere intersection — 1. No intersection. 2. Point intersection. 3. Two point intersection.In analytic geometry, a line and a sphere can intersect in three ways: no intersection at all, at exactly one point, or in two points. Methods for distinguishing these cases,… …   Wikipedia

  • Line segment intersection — In computational geometry, the line segment intersection problem supplies a list of line segments in the plane and asks us to determine whether any two of them intersect, or cross.Naive algorithms examine each pair of segments, but this is highly …   Wikipedia

  • Intersection — has various meanings in different contexts: *In mathematics and geometry **Intersection (set theory), the set of elements common to some collection of sets. **Line line intersection **Line plane intersection **Line–sphere intersection… …   Wikipedia

  • Plane (geometry) — Two intersecting planes in three dimensional space In mathematics, a plane is a flat, two dimensional surface. A plane is the two dimensional analogue of a point (zero dimensions), a line (one dimension) and a space (three dimensions). Planes can …   Wikipedia

  • Plane–sphere intersection — 1. No intersection. 2. Point intersection. 3. Circle intersection.In the theory of analytic geometry for real three dimensional space, the intersection of a plane and a sphere can be the empty set, a point, or a circle.Distinguishing these cases …   Wikipedia

  • Line — Line, n. [OE. line, AS. l[=i]ne cable, hawser, prob. from L. linea a linen thread, string, line, fr. linum flax, thread, linen, cable; but the English word was influenced by F. ligne line, from the same L. word linea. See {Linen}.] 1. A linen… …   The Collaborative International Dictionary of English

  • Line breeding — Line Line, n. [OE. line, AS. l[=i]ne cable, hawser, prob. from L. linea a linen thread, string, line, fr. linum flax, thread, linen, cable; but the English word was influenced by F. ligne line, from the same L. word linea. See {Linen}.] 1. A… …   The Collaborative International Dictionary of English

  • Line conch — Line Line, n. [OE. line, AS. l[=i]ne cable, hawser, prob. from L. linea a linen thread, string, line, fr. linum flax, thread, linen, cable; but the English word was influenced by F. ligne line, from the same L. word linea. See {Linen}.] 1. A… …   The Collaborative International Dictionary of English

  • Line engraving — Line Line, n. [OE. line, AS. l[=i]ne cable, hawser, prob. from L. linea a linen thread, string, line, fr. linum flax, thread, linen, cable; but the English word was influenced by F. ligne line, from the same L. word linea. See {Linen}.] 1. A… …   The Collaborative International Dictionary of English

  • Line of battle — Line Line, n. [OE. line, AS. l[=i]ne cable, hawser, prob. from L. linea a linen thread, string, line, fr. linum flax, thread, linen, cable; but the English word was influenced by F. ligne line, from the same L. word linea. See {Linen}.] 1. A… …   The Collaborative International Dictionary of English

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”