In general, three points A, B and C are collinear if the sum of the lengths of any two line segments among AB, BC and CA is equal to the length of the remaining line segment, that is, either AB + BC = AC or AC +CB = AB or BA + AC = BC. This is from google so make sure to paraphrase