Distance between a Point and a Line in 2-D - Maple Help

Distance between a Point and a Line in 2-D

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

Specify a point.

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

Specify a line.

 > $\mathrm{geometry}\left[\mathrm{line}\right]\left(l,{3}{x}{-}{y}{=}{-5},\left[x,y\right]\right)$
 ${l}$ (2)

Measure the distance between the point and the line.

 > $\mathrm{geometry}\left[\mathrm{distance}\right]\left(p,l\right)$
 $\sqrt{{10}}$ (3)
 Commands Used