See Section 26.15.11 for checking for parallels in 2D geometry.
The is_parallel command determines if two objects are parallel.
L1,L2:=line([0,0,0],[-1,-1,-1]),line([2,3,-2],[-1,-1,-1]); is_parallel(L1,L2) |
|
P:=plane([-1,-1,-1],[1,2,-3],[0,0,0]); is_parallel(P,L2) |
|
P1,P2:=plane([0,0,0],[1,2,-3],[1,1,-2]),plane([1,1,0],[2,3,-3],[2,2,-2]); is_parallel(P1,P2) |
|