Draw a line with a point and an angle



Hi there!

Inputs: 1. a point (x,y)
2. an Angle

I have to draw a line (no determined length) from that point with the
angle given...
How can I know the pixels must be painted?

Thanks!

.