find the 3D coordinate of point with condition

1 回表示 (過去 30 日間)
ha ha
ha ha 2018 年 5 月 13 日
編集済み: ha ha 2019 年 2 月 9 日
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

採用された回答

Matt J
Matt J 2018 年 5 月 13 日
編集済み: Matt J 2018 年 5 月 13 日
B=A+10*n/norm(n);
or
B=A-10*n/norm(n);

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by