axis2quat

rotational axis, roational angle to Quaternion

Decription

defines a rotation by a rotational axis and a roational angle

Syntax

q = achs2quat(x,y,z,omega)
q = achs2quat(v,omega)

Input

x,y,z

rotational axis (double)

v

rotational axis (vector3d)

omega

rotational angle

Output

q

quaternion

See also

quaternion/quaternion, euler2quat, Miller2quat, vec42quat, hr2quat