Previous Up Next

25.11.6  Checking whether points in space are collinear

See Section 24.15.2 for checking for collinearity in two-dimensional geometry.

The is_collinear command determines whether or not points in space are collinear.

Examples

is_collinear([2,0,0],[0,2,0],[1,1,0])
     
1           
is_collinear([2,0,0],[0,2,0],[0,1,1])
     
0           

Previous Up Next