How to translate a point on a line by a distance "e" ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
bh dhouha
am 5 Mai 2015
Kommentiert: bh dhouha
am 5 Mai 2015
I have the line given by the points A and B . The line is in the form [a b c] where the equation is ax+by+c=0. I would like to know the coordinates of the points C and D (figure) which are on the same line but distant of "e" from the point B. I found some functions like "translation" etc but they work with matrices and are too complicated. I just would like to give the parameters of the line (a b c), the points A and B, distance e and get the coordinates of C and D as result. Thanks
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 5 Mai 2015
This is just simple high school trig/algebra. You know the slope of the line, -a/b, so you know the angle, and so you can find the new x and y values of C and D with sin and cos and the value of e.
Siehe auch
Kategorien
Mehr zu Quadcopters and Drones finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!