geometry
distance
find the distance between two points, or a point and a line
Calling Sequence
Parameters
Description
Examples
distance(P1, P2)
distance(P1, l)
P1, P2
-
points
l
line
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.
with⁡geometry:
point⁡A,a,b,point⁡B,c,d:
distance⁡A,B
a−c2+b−d2
assume⁡m≠0:
line⁡l,m⁢x+n⁢y=w,x,y:
distance⁡A,l
a⁢m~+b⁢n−wm~2+n2
distance⁡B,l
c⁢m~+d⁢n−wm~2+n2
See Also
geom3d[distance]
geometry[SensedMagnitude]
Student[Precalculus][Distance]
Download Help Document