Lably
Skip to content

Line–plane intersection

Geometric intersection of a line and plane in 3D space

  • 3 min read
  • 3 chapters

Learn it on Lably

Distinguishing these cases, and determining equations for the point and line in the latter cases, have use in computer graphics, motion planning, and collision detection.

Algebraic form

In vector notation, a plane can be expressed as the set of points p for which

(p−p0)⋅n=0

where n is a normal vector to the plane and p0 is a point on the plane. (The notation a⋅b denotes the dot product of the vectors a and b.)

The vector equation for a line is

p=l0+ldd∈R

where l is a unit vector in the direction of the line, l0 is a point on the line, and d is a scalar in the real number domain. Substituting the equation for the line into the equation for the plane gives

((l0+ld)−p0)⋅n=0.

Expanding gives

(l⋅n)d+(l0−p0)⋅n=0.

And solving for d gives

d=(p0−l0)⋅nl⋅n.

If l⋅n=0 then the line and plane are parallel. There will be two cases: if (p0−l0)⋅n=0 then the line is contained in the plane, that is, the line intersects the plane at each point of the line. Otherwise, the line and plane have no intersection.

If l⋅n≠0 there is a single point of intersection. The value of d can be calculated and the point of intersection, p, is given by

p=l0+ld.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Mathematics