Distance between a Point and a Line in 3-D - Maple Programming Help

Distance between a Point and a Line in 3-D

 Description Measure the distance between a point and a line in three-dimensional space.

Specify the point.

 > $\mathrm{geom3d}\left[\mathrm{point}\right]\left(p,{-}{1}{,}{2}{,}{3}\right)$
 ${p}$ (1)

Define the line by specifying two different points on the line.

Specify a point on the line.

 > $\mathrm{geom3d}\left[\mathrm{point}\right]\left(a,{2}{,}{4}{,}{0}\right)$
 ${a}$ (2)

Specify another point on the line.

 > $\mathrm{geom3d}\left[\mathrm{point}\right]\left(b,{0}{,}{2}{,}{-}{1}\right)$
 ${b}$ (3)

Define the line using the two points.

 > $\mathrm{geom3d}\left[\mathrm{line}\right]\left(l,\left[a,b\right]\right)$
 ${l}$ (4)

Measure the distance between the point and the line.

 > $\mathrm{geom3d}\left[\mathrm{distance}\right]\left(l,p\right)$
 $\frac{{1}}{{3}}{}\sqrt{{149}}$ (5)
 Commands Used