Miller2quat

calculate quaternion from Miller indece

Description

The method Miller2quat defines a rotation by Miller indece as the rotation q such that q * v1 = e3 and q * e1 = v2

Syntax

quat = Miller2quat(m1,m2) quat = Miller2quat([h k l],[u v w],CS)

Input

m1, m2

Miller

h,k,l

Miller indece (double)

u,v,w

Miller indece (double)

CS

crystalSymmetry

Output

quat

quaternion

See also

quaternion_index, quaternion/quaternion, axis2quat, euler2quat, vec42quat, hr2quat, idquaternion