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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With