If then you have a ray starting at the origin extending out infinitely long making this angle with the positive x-axis.
The Cartesian (rectangular) form for the equation of a line is where m is the gradient and c is the y intercept. c is clearly 0. As for m, it can be calculated using .
So the rectangular form of this equation is where .