distance - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

geometry

  

distance

  

find the distance between two points, or a point and a line

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

distance(P1, P2)

distance(P1, l)

Parameters

P1, P2

-

points

l

-

line

Description

• 

The routine computes the distance between two points P1 and P2 or between a point P1 and a line l.

• 

The command with(geometry,distance) allows the use of the abbreviated form of this command.

Examples

withgeometry:

pointA,a,b,pointB,c,d:

distanceA,B

ac2+bd2

(1)

assumem0:

linel,mx+ny=w,x,y:

distanceA,l

am~+bnwm~2+n2

(2)

distanceB,l

cm~+dnwm~2+n2

(3)

See Also

geom3d[distance]

geometry[SensedMagnitude]

Student[Precalculus][Distance]

 


Download Help Document