See section 12.6.7 for points of intersection of objects in the plane.
The inter command takes two geometric objects as arguments and returns a list of the points of intersection or the curve of intersection of the two objects.
The inter command optionally takes a point as a third argument. In this case, inter returns the point of intersection closest to this argument.
Input:
then:
Output:
Input:
then:
Output:
To get just one of the points, use the usual list indices.
Input:
Output:
To get the point closest to (1/2,1/2,1/2), enter
Input:
then:
Output: