Determining if points are on the same line