dot

(method of quaternion)

inner product of quaternions g1 and g2

Syntax

d = dot(g1,g2)

Input

q1, q2

quaternion

Output

double