Slope intercept form of line equals:

xcosθ + ysinθ = P

y - y1 = m(x - x1)

y = mx + c