Finding a 3D parallel vector
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alonso Figueroa
am 24 Jul. 2018
Kommentiert: Alonso Figueroa
am 25 Jul. 2018
Hello,
I am looking for a unit vector that starts at a point (l,m,n) and it's, at the same time, parallel to the line that goes from (a,b,c) to (d,e,f). Can anyone help me with this problem?
Thank you, AF.
0 Kommentare
Akzeptierte Antwort
James Tursa
am 24 Jul. 2018
Bearbeitet: James Tursa
am 24 Jul. 2018
A unit vector parallel to the points from (a,b,c) to (d,e,f) is just this:
v1 = [a,b,c];
v2 = [d,e,f];
u = v2 - v1;
u = u/norm(u);
A point on a parallel line that goes through (l,m,n) is then just this:
p = [l,m,n];
x = any scalar value
point_on_line = p + x * u;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Linearization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!