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