mathCollinearity: Conditions to Check If Points Lie on One Line
Collinearity is the property of three or more points lying on one straight line. Equal slopes, AB + BC = AC, zero triangle area, a zero determinant or parallel vectors all test it, and they always agree.
Collinearity