find the 3D coordinate of point with condition

2 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 PHY Components 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by