# Checking if points and/or lines in space are coplanar: is_coplanar

### 14.13.2 Checking if points and/or lines in space are coplanar: is_coplanar

The is_coplanar command determines whether or not several points or several lines are coplanar.

- is_coplanar takes one argument:
  S, a sequence where each element is a point or a line.
- is_coplanar(S) returns 1 is the elements of S are coplanar and returns 0 otherwise.

#### Examples.

- Input:
  is_coplanar([0,0,0],[1,2,-3],[1,1,-2],[2,1,-3])
  Output:

  1

- Input:
  is_coplanar([-1,2,0],[1,2,-3],[1,1,-2],[2,1,-3])
  Output:

  0

- Input:
  is_coplanar([0,0,0],[1,2,-3],line([1,1,-2],[2,1,-3]))
  Output:

  1

- Input:
  is_coplanar(line([-1,2,0],[1,2,-3]),line([1,1,-2],[2,1,-3]))
  Output:

  0