Points and Distance
Collinear Test
Compare exact slopes between consecutive pairs of points to decide whether all three points lie on one line.
collinear-test
Three points are collinear when their slopes match.