### 26.15.2 Checking whether three points are collinear in the plane

See Section 27.11.6 for checking for collinearity in 3D geometry.

The is_collinear command determines whether or not three points are collinear.

- is_collinear takes three arguments: A,B,C, three points.
- is_collinear(A,B,C) returns 1 if A,B and C are collinear and 0 otherwise.

#### Examples

is_collinear(0,1+i,-1-i)

1 |  |  |  |  |  |  |  |  |  |

is_collinear(i/100,1+i,-1-i)

0 |  |  |  |  |  |  |  |  |  |