geom3d
distance
find the distance between two given objects
Calling Sequence
Parameters
Description
Examples
distance(A, B)
distance(l1, l2)
distance(p1, p2)
distance(A, l1)
distance(A, p1)
distance(l1, p1)
A, B
-
points
l1, l2
lines
p1, p2
planes
The routine computes the distance between two given objects: points, lines, and planes, or any combination of these.
The command with(geom3d,distance) allows the use of the abbreviated form of this command.
with⁡geom3d:
Distance from a point to a plane
assume⁡l≠0
plane⁡pp,l⁢x+m⁢y+n⁢z+p=0,x,y,z:
point⁡A,x1,y1,z1:
distance⁡A,pp
l~⁢x1+m⁢y1+n⁢z1+pl~2+m2+n2
l≔l:
Find the distance from a point to a straight line
point⁡A,6,6,−1,line⁡l,2+t,1+2⁢t,−3−t,t:
distance⁡A,l
14⁢62
Find the two points on the line x=2⁢y=3⁢z+6 at a distance of 7 units from the plane 2⁢x+y−2⁢z=5.
point⁡o,t,12⁢t,−2+t3:
plane⁡p,2⁢x+y−2⁢z=5,x,y,z:
d≔distance⁡o,p:
ans≔solve⁡d=7,t:
foritonops⁡ansdoans≔subsop⁡i=subs⁡t=op⁡i,ans,coordinates⁡o,ansenddo:
coordinates of the two points are
ans
12,6,2,−12011,−6011,−6211
See Also
assume
geom3d[sides]
geometry[distance]
Student[Precalculus][Distance]
Download Help Document