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