find the 3D coordinate of point with condition

조회 수: 2 (최근 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개)

카테고리

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