Given three 2D points a, b, and c you can test that a, b, and c fall on a line by noting the sl
a
b
c