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.