find the 3D coordinate of point with condition

2 vues (au cours des 30 derniers jours)
ha ha
ha ha le 13 Mai 2018
Modifié(e) : ha ha le 9 Fév 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

Réponse acceptée

Matt J
Matt J le 13 Mai 2018
Modifié(e) : Matt J le 13 Mai 2018
B=A+10*n/norm(n);
or
B=A-10*n/norm(n);

Plus de réponses (0)

Catégories

En savoir plus sur PHY Components dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by