See Section 13.6.6 for single points of intersection of objects in the plane.
The single_inter command
finds an intersection point of two geometric objects.
line_inter is a synonym for single_inter
Examples.
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) |
⎡ ⎣ | 1,0,0 | ⎤ ⎦ |
C1:=single_inter(sphere(point(0,0,0),1),line(point(1,0,0),point(1,1,1)), |
[point(1,0,0)]):; |
coordinates(C1) |
⎡ ⎢ ⎢ ⎣ |
| , |
| , |
| ⎤ ⎥ ⎥ ⎦ |