Example
Compare slopes to decide whether three plotted points are collinear.
highlighted = computed this step
Step 1 — Plot points
Plot the three test points.
Coordinate plot
Step 2 — Slope from A to B
Compute the slope from A to B.
mAB=(6−2)/(3−1)=2
Step 3 — Slope from B to C
Compute the slope from B to C.
mBC=(10−6)/(5−3)=2
Step 4 — Verdict
Compare slopes to decide collinearity.
mAB=mBC⇒collinear: yes
collinear-test
Three points are collinear when their slopes match.