Strange behaviour of vrrotvec. What is [0 0 0] axis?
Ältere Kommentare anzeigen
I have such an example:
v0 = [0 0 -1]; v1 = [0 0 1];
q = vrrotvec(v0, v1);
So, as I understand, v1 is v0 rotated by 180 degrees in x-axis. But I get q = [0 0 0 pi]
Why?
Akzeptierte Antwort
Weitere Antworten (1)
Jan Danek
am 20 Jul. 2012
1 Stimme
Hi Evgheny and Antti,
Thanks for pointing at this. We have corrected the behaviour of this function, as of MATLAB R2012b it will provide a valid axis for parallel / anti-parallel input vectors.
vrrotvec function is to determine the VRML rotation that will rotate the first input vector to the second. It is written as to find the minimal angle that will do that 0;pi.
Best regards,
Jan
Kategorien
Mehr zu Interactions, Camera Views, and Lighting finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!