Formula
$$x\cos\alpha + y\sin\alpha = p$$
Variables
p
→
Length of the perpendicular from the origin
α
→
Angle of perpendicular by positive x-axis
$$x\cos\alpha + y\sin\alpha = p$$