rotate
(method of vector3d)
rotate vector3d by rotation or orientation
Description
Either |v| or |rot| are single elements or both have the same size. The ouptut |v| will have the same size as the biger of both input arrays.
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 5.0.0 |