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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Geometry : 2-D Euclidean : Point Functions : geometry/distance

geometry[distance] - find the distance between two points, or a point and a line

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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam