Previous Up Next

25.11.3  Checking whether lines and/or planes in space are parallel

See Section 24.15.11 for checking for parallels in two-dimensional geometry.

The is_parallel command determines if two objects are parallel.

Examples

L1:=line([0,0,0],[-1,-1,-1]); L2:=line([2,3,-2],[-1,-1,-1]); is_parallel(L1,L2)
     
0           
P:=plane([-1,-1,-1],[1,2,-3],[0,0,0]); is_parallel(P,L2)
     
1           
P1:=plane([0,0,0],[1,2,-3],[1,1,-2]); P2:=plane([1,1,0],[2,3,-3],[2,2,-2]); is_parallel(P1,P2)
     
1           

Previous Up Next