See Section 24.5.6 for single points of intersection of objects in the plane.
The single_inter or line_inter command finds an intersection point of two geometric objects.
If pt is a single point, then the command returns the point of intersection closest to pt.
If pt is a list of points, then the command tries to return a point not in pt.
A:=single_inter(plane(point(0,1,1),point(1,0,1),point(1,1,0)), line(point(0,0,0),point(1,1,1))):; coordinates(A) |
|
B:=single_inter(sphere(point(0,0,0),1),line(point(0,0,0),point(1,1,1))):; coordinates(B) |
|
B1:=single_inter(sphere(point(0,0,0),1),line(point(0,0,0),point(1,1,1)),point(-1,0,0)):; coordinates(B1) |
|
C:=single_inter(sphere(point(0,0,0),1),line(point(1,0,0),point(1,1,1))):; coordinates(C) |
|
C1:=single_inter(sphere(point(0,0,0),1),line(point(1,0,0),point(1,1,1)),[point(1,0,0)]):; coordinates(C1) |
|