rotate_outer edit page

rotate vector3d by quaternion

Syntax

v = rotate_outer(v,20*degree) % rotation about the z-axis
rot = rotation_outer.byEuler(10*degree,20*degree,30*degree)
v = rotate_outer(v,rot)

Input

v vector3d
q quaternion

Output

r q * v;