Closed MaximeLemonnier-Leddartech closed 2 years ago
def qnorm(q): ''' Return norm of quaternion
Parameters ---------- q : 4 element sequence w, i, j, k of quaternion Returns ------- n : scalar quaternion norm ''' return np.dot(q, q) <--- wrong! should be np.sqrt(np.dot(q, q))
Oops - and I was only testing unit quaterions. Would you mind having a look at https://github.com/matthew-brett/transforms3d/pull/22 ?
Closed by #22 - thanks.
def qnorm(q): ''' Return norm of quaternion