geometry
intersection
find the intersections between two lines, a line and a circle, or two circles
Calling Sequence
Parameters
Description
Examples
intersection(obj, f, g, s)
obj
-
name
f, g
the lines or circles
s
(optional) list of two names
The routine finds the intersection between two lines, a line and a circle, or two circles.
The output is obj which is assigned to a list of two points (two points of intersection), or a point (one point of intersection), or nothing (there is no point of intersection).
If the argument s is given and in case there exists two points of intersection, the names of the two points are the two elements in the list.
For more details on the point(s) of intersection, use detail.
The command with(geometry,intersection) allows the use of the abbreviated form of this command.
with⁡geometry:
line⁡l1,x=0,x,y,line⁡l2,x+y=1,x,y:
circle⁡c,x2+y2=1,x,y:
intersection⁡G,l1,l2
G
intersection⁡H,l2,c,M,N
M,N
coordinates⁡G
0,1
detail⁡H
name of the objectMform of the objectpoint2dcoordinates of the point0,1,name of the objectNform of the objectpoint2dcoordinates of the point1,0
circle⁡c1,point⁡o,12,0,1,x,y:
intersection⁡H1,c,c1,U,V:
detail⁡H1
name of the objectUform of the objectpoint2dcoordinates of the point14,154,name of the objectVform of the objectpoint2dcoordinates of the point14,−154
See Also
geometry[circle]
geometry[line]
Download Help Document