See Section 27.11.6 for checking for collinearity in 3D geometry.
The is_collinear command determines whether or not three points are collinear.