geom3d[intersection] - find the intersections between two or three given objects.
|
Calling Sequence
|
|
intersection(obj, l1, l2)
intersection(obj, p1, p2)
intersection(obj, l1, p1)
intersection(obj, l1, s)
intersection(obj, p1, p2, p3)
|
|
Parameters
|
|
obj
|
-
|
name
|
l1, l2
|
-
|
lines
|
p1, p2, p3
|
-
|
planes
|
s
|
-
|
sphere
|
|
|
|
|
Description
|
|
•
|
The routine finds the intersection between two lines, two planes, a line and a plane, a line and a sphere, or three planes.
|
•
|
In general, the output is assigned to the first argument obj. If the routine is unable to determine the intersection(s) of given objects, it will return FAIL.
|
•
|
If l1 and l2 are two lines, the output is either NULL, the point of intersection, or a line in case l1 and l2 are the same.
|
•
|
If p1 and p2 are two planes, the output is either NULL, the line of intersection, or a plane in case p1 and p2 are the same.
|
•
|
If l1 is a line and p1 a plane, the output is either NULL, the point of intersection, or a line in case l1 lies in p1.
|
•
|
If l1 is a line and s a sphere, the output is either NULL, one point of intersections, a list of two points of intersection.
|
•
|
If p1, p2 and p3 are three planes, the output is NULL, or the point of intersection.
|
•
|
For more details on the output, use detail.
|
•
|
The command with(geom3d,intersection) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
intersection of two planes
>
|
|
>
|
|
>
|
|
>
|
|
Warning, assume that the parameter in the parametric equations is _t
| |
| (1) |
intersection of three planes
>
|
|
>
|
|
>
|
|
| (2) |
>
|
|
| (3) |
Prove that the lines 2*x-y+3*z+3=0=x+10*y-21 and 2*x-y=0=7*x+z-6 intersect. Find the coordinates of their common point, and the equation of the plane containing them.
Define the line l1: 2*x-y+3*z+3=0=x+10*y-21
>
|
|
>
|
|
Define the line l2: 2*x-y=0=7*x+z-6
>
|
|
>
|
|
Find the intersection of l1 and l2
>
|
|
| (4) |
>
|
|
| (5) |
Find the equation of the plane containing l1 and l2
>
|
|
>
|
|
| (6) |
Prove that the lines (x-a)/ap=(y-b)/bp=(z-c)/cp and (x-ap)/a=(y-bp)/b=(z-cp)/c intersect, and find the coordinates of the point of intersection.
>
|
|
>
|
|
>
|
|
>
|
|
| (7) |
>
|
|
| (8) |
|
|