Finding the points of intersection of two geometric objects in the plane

### 26.5.7 Finding the points of intersection of two geometric objects in the plane

See Section 27.3.4 for points of intersection of objects in space.

The inter command finds the intersection of two geometric objects in the plane.

- inter takes two mandatory arguments and one optional argument.
  - obj1, obj2, two geometric objects.
  - Optionally, P, a point.
  inter(obj1,obj2 ⟨,P⟩) returns a list of points of intersection of obj1 and obj2.

  With the argument P, the command returns the point of intersection closest to P.

#### Examples

inter(circle(1+i,1/2),line(2,i))

which are the points at (1,0) and (0,1). To get just one of the points, use the usual list indices.To get the point closest to e.g. (0,1/2):

inter(circle(1+i,1/2),line(2,i),i/2)