Use the slope formula m = (y₂ − y₁) / (x₂ − x₁) — includes positive, negative, zero, and undefined slopes.