rotate
(method of vector3d)
rotate vector3d by quaternion
Syntax
v = rotate(v,20*degree) % rotation about the z-axis rot = rotation('Euler',10*degree,20*degree,30*degree) v = rotate(v,rot)
Input
v | |
q |
Output
r = q * v; |
MTEX 4.0.1 |
MTEX - A MATLAB Toolbox for Quantitative Texture Analysis | View Code |
(method of vector3d)
rotate vector3d by quaternion
v = rotate(v,20*degree) % rotation about the z-axis rot = rotation('Euler',10*degree,20*degree,30*degree) v = rotate(v,rot)
v | |
q |
r = q * v; |
MTEX 4.0.1 |