find the 3D coordinate of point with condition

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일

0 개 추천

B=A+10*n/norm(n);
or
B=A-10*n/norm(n);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2018년 5월 13일

편집:

2019년 2월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by