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

 Respuesta aceptada

Matt J
Matt J el 13 de Mayo de 2018
Editada: Matt J el 13 de Mayo de 2018
B=A+10*n/norm(n);
or
B=A-10*n/norm(n);

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 13 de Mayo de 2018

Editada:

el 9 de Feb. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by