intersection - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


geometry

  

intersection

  

find the intersections between two lines, a line and a circle, or two circles

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

intersection(obj, f, g, s)

Parameters

obj

-

name

f, g

-

the lines or circles

s

-

(optional) list of two names

Description

• 

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.

Examples

withgeometry:

linel1,x=0,x,y,linel2,x+y=1,x,y:

circlec,x2+y2=1,x,y:

intersectionG,l1,l2

G

(1)

intersectionH,l2,c,M,N

M,N

(2)

coordinatesG

0,1

(3)

detailH

name of the objectMform of the objectpoint2dcoordinates of the point0,1,name of the objectNform of the objectpoint2dcoordinates of the point1,0

(4)

circlec1,pointo,12,0,1,x,y:

intersectionH1,c,c1,U,V:

detailH1

name of the objectUform of the objectpoint2dcoordinates of the point14,154,name of the objectVform of the objectpoint2dcoordinates of the point14,154

(5)

See Also

geometry[circle]

geometry[line]