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
2.1m questions
2.1m answers
60 comments
57.0k users