Check if three points in space are collinear: is_collinear

### 13.13.6 Check if three points in space are collinear: is_collinear

See section 12.16.2 for checking for collinearity in two-dimensional geometry.

The is_collinear command takes as argument a list or sequence of points.

is_collinear returns 1 if the points are collinear, it returns 0 otherwise.

Input:

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

Output:

1

Input:

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

Output:

0