find the 3D coordinate of point with condition

1 Ansicht (letzte 30 Tage)
ha ha
ha ha am 13 Mai 2018
Bearbeitet: ha ha am 9 Feb. 2019
Let's say: I have point A(1,1,1) in 3D space OXYZ, and vector n(1,2,3). How can i find the coordinate point B satifying the condition:
1/ Distance between A & B is: 10
2/ B lie on vector n

Akzeptierte Antwort

Matt J
Matt J am 13 Mai 2018
Bearbeitet: Matt J am 13 Mai 2018
B=A+10*n/norm(n);
or
B=A-10*n/norm(n);

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by