How can I find equation of a line or draw a line, given a starting point, length of line and angle of line (relative to x-axis)?
Starting point you know (x1, x2), end point is (x1 + l * cos(ang), y1 + l * sin(ang)) where l is the length and ang is the angle.
(x1, x2)
(x1 + l * cos(ang), y1 + l * sin(ang))
l
ang
1.4m articles
1.4m replys
5 comments
57.0k users