Skip to content
Home

Skew lines (nonparallel, nonintersecting lines in 3D geometry)

Lines in three-dimensional space that neither intersect nor are parallel; defined by noncoplanarity. Article covers definition, algebraic tests, distance formula, examples and applications.

Overview

Skew lines are straight lines in space that do not meet and are not parallel. Unlike two lines in a single plane, which either intersect or are parallel, skew lines exist only in three or more dimensions: they lie in different planes and therefore cannot be placed on one common plane without moving them.

Image gallery

2 Images

Characteristics and algebraic test

In analytic geometry each line can be written in parametric vector form: L1: r = p + t u and L2: r = q + s v, where p and q are position vectors of points on the lines and u and v are their direction vectors. The two necessary conditions for skewness are:

  • u and v are not parallel (equivalently u × v ≠ 0), and
  • the vector connecting a point on one line to a point on the other, w = q − p, is not coplanar with u and v. Algebraically this means the scalar triple product w · (u × v) ≠ 0.

If u and v were parallel and w · (u × v) = 0, the lines would be parallel or coincident; if u × v ≠ 0 but w · (u × v) = 0, the lines lie in a common plane and so intersect.

Distance and shortest segment

Two skew lines have a unique shortest segment that is perpendicular to both lines. The length of this segment equals the distance between the lines and can be computed by | (q − p) · (u × v) | / |u × v|. This formula uses the magnitude of the cross product of direction vectors and the scalar triple product, giving a coordinate-free measure of separation.

Examples and applications

Classic geometric examples are opposite edges of a rectangular box or a cube: those edges neither meet nor remain parallel. Skew lines appear in mechanical design, computer graphics, collision detection, robotics and CAD, where spatial relationships between components must be analyzed in three dimensions.

Distinctions and practical notes

Do not confuse skew lines with parallel lines (same direction, never meet) or with intersecting lines (share a point). Determining whether two 3D lines intersect can be done by solving their parametric equations; if no common (s,t) exists and the lines are not parallel, they are skew. These criteria and formulas are widely used in analytic and computational geometry.

Calculation of the distance between two skew lines

The uniquely determined path of smallest length hconnecting two skew lines gand called the common perpendicular of the two lines. The line on which the common perpendicular lies is called the minimum transversal of the two lines. This is the uniquely determined straight line which is at right angles to the two straight lines. The length of the common perpendicular of gand his the distance d = d(g,h)of the two straight lines.

Given the skew lines gand hwith the supporting points Aand Bresp. the support vectors \vec a = \overrightarrow{OA},\;\vec b = \overrightarrow{OB}and the direction vectors {\vec {v}}and {\vec {w}}. Then the parameter forms of the linear equations are

{\displaystyle g\colon {\vec {x}}={\vec {a}}+r{\vec {v}}}

{\displaystyle h\colon {\vec {x}}={\vec {b}}+s{\vec {w}}\ \ \,r,s\in \mathbb {R} },

Where \vec a,\,\vec b,\,\vec v,\,\vec w \in \R^3holds and the three vectors  \vec a - \vec b,\,\vec v,\,\vec wmust be linearly independent.

The normal vector {\vec {n}}which is perpendicular to the two direction {\vec {v}}and can be {\vec {w}}calculated via the cross product:

\vec n = \vec v \times \vec wand bring to length 1: \vec n_0 = \frac{\vec v \times \vec w}{|\vec v \times \vec w|}.

The calculation of the distance is possible by the orthogonal projection of the connection vector of the support points on the normal vector. To do this, the normal vector is brought to the length 1. The distance of the two skew lines is then

{\displaystyle d(g,h)=|({\vec {a}}-{\vec {b}})\cdot {\vec {n}}_{0}|}.

Notation with determinants

The two straight line equations are written out as follows

{\displaystyle g\colon {\vec {x}}=\left({\begin{smallmatrix}a_{1}\\[0.7ex]a_{2}\\[0.7ex]a_{3}\end{smallmatrix}}\right)+r\left({\begin{smallmatrix}v_{1}\\[0.7ex]v_{2}\\[0.7ex]v_{3}\end{smallmatrix}}\right)}

{\displaystyle h\colon {\vec {x}}=\left({\begin{smallmatrix}b_{1}\\[0.7ex]b_{2}\\[0.7ex]b_{3}\end{smallmatrix}}\right)+s\left({\begin{smallmatrix}w_{1}\\[0.7ex]w_{2}\\[0.7ex]w_{3}\end{smallmatrix}}\right)\ \ \,r,s\in \mathbb {R} }.

The distance between the two skew lines using the determinant det is then

{\displaystyle d(g,h)={\frac {\left|\det {\begin{pmatrix}a_{1}-b_{1}&a_{2}-b_{2}&a_{3}-b_{3}\\v_{1}&v_{2}&v_{3}\\w_{1}&w_{2}&w_{3}\end{pmatrix}}\right|}{\sqrt {{\begin{vmatrix}v_{2}&v_{3}\\w_{2}&w_{3}\end{vmatrix}}^{2}+{\begin{vmatrix}v_{3}&v_{1}\\w_{3}&w_{1}\end{vmatrix}}^{2}+{\begin{vmatrix}v_{1}&v_{2}\\w_{1}&w_{2}\end{vmatrix}}^{2}}}}}.

Determination of the perpendicular points

The perpendicular foot point {\displaystyle F_{h}} is obtained by setting up an auxiliary plane Epoint Alies on the auxiliary plane, {\vec {v}}and {\vec {n}}span the auxiliary plane.

{\displaystyle E\colon {\vec {x}}={\vec {a}}+r{\vec {v}}+t{\vec {n}}\ \ ,r,t\in \mathbb {R} },

where the normal vector is determined by

\vec n = \vec v \times \vec w.

The intersection of Eand hgives the plumb bob {\displaystyle F_{h}}:

\vec F_h=\frac{ \vec a \cdot \vec n_1 - \vec b \cdot \vec n_1 }{ \vec w \cdot \vec n_1 } \vec w + \vec bwhere \vec n_1 = \vec v \times (\vec v \times \vec w)

Similarly, we obtain F_gwith the plane {\displaystyle E'\colon {\vec {x}}={\vec {b}}+s{\vec {w}}+t{\vec {n}}\ \ \,s,t\in \mathbb {R} }and its intersection with g:

\vec F_g=\frac{ \vec b \cdot \vec n_2 - \vec a \cdot \vec n_2 }{ \vec v \cdot \vec n_2 } \vec v + \vec awhere \vec n_2 = \vec w \times (\vec v \times \vec w)

With this method, the distance dnot need to be calculated.

The perpendicular foot points can also be determined by setting the two (for the time being unknown) points:

{\displaystyle {\vec {F}}_{h}={\vec {a}}+r{\vec {v}}}and {\displaystyle {\vec {F}}_{g}={\vec {b}}+s{\vec {w}}}

and then move one along {\vec {n}} and make it coincide with the other:

{\displaystyle {\vec {a}}+r{\vec {v}}+u{\vec {n}}={\vec {b}}+s{\vec {w}}}.

A line-by-line resolution yields a system with three variables: r, uand s. The footers are then:

{\displaystyle {\vec {a}}+r{\vec {v}}}and {\displaystyle {\vec {b}}+s{\vec {w}}}.

The distance dgiven by {\displaystyle |u{\vec {n}}|}

Related articles

Author

AlegsaOnline.com Skew lines (nonparallel, nonintersecting lines in 3D geometry)

URL: https://en.alegsaonline.com/art/90906

Share