The segment may
intersect the plane formed by
with the normal
in any (or all) generic point
on the segment.
The line equation in parametric form can be expressed as:
where
is the intersection between the segment
and the plane
and values of
will yield points on that segment.
The equation of the plane can be expressed as:
where
can be any known point in the plane
.
We plug the line equation into the equation of the plane:
and distribute the normal vector
:
then collect for
:
then group on the right-hand side of the equation:
and collect again for
we obtain the equation for
:
Now, based on the equation, we can make the following judgments:
then the vector
and the segment
are perpendicular meaning that the segment
is either parallel to the plane formed by
or that the segment
is contained entirely in the plane described by
.
is contained in the plane described by
then the entire segment is contained within the plane.
is contained in the plane described by
then the segment is parallel with the plane described by
.
then the segment
interesects the plane.
then the intersection falls on the first end-point.
then the intersection falls on the second end-point.
or
then the segment
does not intersect the plane.
then intersection occurs beyond the second end-point.
then intersection occurs before the first end-point.