Re: [csswg-drafts] [css-transforms] Quaternion calculation for 3D matrix decomposition (#3710)

This snippet is what one finds everywhere on the internet, but I think even more robust is multiplying each equation by `r`, which produces a not normalized quaternion but removes the square root. After that the resulting quaternion must be normalized by dividing by its norm. I did this for Quaternion.js and the code is much more readable IMHO https://github.com/rawify/Quaternion.js/blob/master/quaternion.js#L1361

-- 
GitHub Notification of comment by infusion
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3710#issuecomment-1693953496 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 25 August 2023 21:26:14 UTC