https://github.com/sgsellan/developability-of-heightfields
Raw File
Tip revision: 208ddd4aebfd89c943bb863eeb5fef78ab4f4499 authored by Silvia Sellán on 19 June 2021, 18:02:00 UTC
Update README.md
Tip revision: 208ddd4
rotmatrix.m
function R=rotmatrix(A,B)
%RA=B
vv = cross(A,B);
ssc = [0 -vv(3) vv(2); vv(3) 0 -vv(1); -vv(2) vv(1) 0];
R = eye(3) + ssc + ssc^2*(1-dot(A,B))/(norm(vv))^2;
end
back to top