geom3d
intersection
find the intersections between two or three given objects.
Calling Sequence
Parameters
Description
Examples
intersection(obj, l1, l2)
intersection(obj, p1, p2)
intersection(obj, l1, p1)
intersection(obj, l1, s)
intersection(obj, p1, p2, p3)
obj
-
name
l1, l2
lines
p1, p2, p3
planes
s
sphere
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.
with⁡geom3d:
intersection of two planes
plane⁡p1,4⁢x+4⁢y−5⁢z=12,x,y,z:
plane⁡p2,8⁢x+12⁢y−13⁢z=32,x,y,z:
intersection⁡l,p1,p2:
detail⁡l
name of the objectlform of the objectline3dequation of the linex=1+8⁢_t,y=2+12⁢_t,z=16⁢_t
intersection of three planes
point⁡A,0,0,0,point⁡B,1,0,0,point⁡C,0,1,0,point⁡E,0,0,1:
plane⁡oxy,A,B,C,plane⁡oyz,A,C,E,plane⁡oxz,A,B,E:
intersection⁡P,oxy,oyz,oxz
P
coordinates⁡P
0,0,0
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
plane⁡p1,2⁢x−y+3⁢z+3=0,x,y,z:plane⁡p2,x+10⁢y−21=0,x,y,z:
line⁡l1,p1,p2:
Define the line l2: 2⁢x−y=0=7⁢x+z−6
plane⁡p3,2⁢x−y=0,x,y,z:plane⁡p4,7⁢x+z−6=0,x,y,z:
line⁡l2,p3,p4:
Find the intersection of l1 and l2
intersection⁡P,l1,l2
1,2,−1
Find the equation of the plane containing l1 and l2
plane⁡p,l1,l2:
Equation⁡p
−378+63⁢x+189⁢y+63⁢z=0
Prove that the lines x−aap=y−bbp=z−ccp and x−apa=y−bpb=z−cpc intersect, and find the coordinates of the point of intersection.
assume⁡ap≠0,a≠0:
line⁡l1,point⁡o1,a,b,c,ap,bp,cp:
line⁡l2,point⁡o2,ap,bp,cp,a,b,c:
a~+ap~,b+bp,c+cp
See Also
geom3d[line]
geom3d[plane]
geom3d[sphere]
Download Help Document