I have two orthogonal vectors: direction – [1 0 0] and polarization – [0 0 1]. I put a "look at" point in position [5 5 5], which changes direction vector to [0.707 0.707 0.707]. Using that I need to transform my polarization vector to [-0.707 -0.707 0.707] to keep original orthogonality. More general task can be formulated as follows. I have a bunch of somehow oriented vectors in 3D space. Using a single 3D point, I redirect a single vector from the set of vectors. How to transform another vectors from the bunch to keep the original structure of relative directions? As I know the task is called as "Look At Rotation".
MATLAB: Rotation of a two orthogonal vectors
3d vectorMATLABmattrixquartenionrotation
Best Answer