Length of a Line Segment in 3-D - Maple Programming Help

Length of a Line Segment in 3-D

 Description Measure the length of a line segment in three-dimensional space.

Specify the first endpoint.

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

Specify the second endpoint.

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

Define the line segment using the two points.

 > $\mathrm{geom3d}\left[\mathrm{segment}\right]\left(s,a,b\right)$
 ${s}$ (3)

Measure the length of the line segment.

 > $\mathrm{geom3d}\left[\mathrm{distance}\right]\left(s\right)$
 $\sqrt{{17}}$ (4)
 Commands Used