Previous Up Next

27.11.6  Checking whether points in space are collinear

See Section 26.15.2 for checking for collinearity in 2D 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