See Section 13.16.2 for checking for collinearity in two-dimensional geometry.
The is_collinear command determines whether or not points in space are collinear.
Examples.