geom3d[distance] - find the distance between two given objects
|
Calling Sequence
|
|
distance(A, B)
distance(l1, l2)
distance(p1, p2)
distance(A, l1)
distance(A, p1)
distance(l1, p1)
|
|
Parameters
|
|
A, B
|
-
|
points
|
l1, l2
|
-
|
lines
|
p1, p2
|
-
|
planes
|
|
|
|
|
Description
|
|
•
|
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.
|
|
|
Examples
|
|
>
|
|
Distance from a point to a plane
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
Find the distance from a point to a straight line
>
|
|
>
|
|
| (2) |
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.
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
coordinates of the two points are
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?