Re: [csswg-drafts] [css-transforms] New quaternion CSS transform option (#9243)

It's been too long since I dug into quaternions - are these purely (3d) rotations, or can they correspond to other transforms, like translates? (Given <https://drafts.csswg.org/css-transforms-2/#decomposing-a-3d-matrix> I suspect it's a rotation and a scale, since the decomposition separates out the other things, leaving just rotate and scale to be expressed via the quaternion.)

For my own edification (and that of others who have a passing, at best, familiarity with the quaternion math), could you give an example of it in practice, comparing with the equivalent rotate3d()?

Assuming that the quat() normalizes to a matrix3d() like all the other functions, would the decomposition text currently in the spec correctly extract out the quaternion unchanged, so you still get the expected quaternion-based rotation?

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9243#issuecomment-1693979052 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 22:01:42 UTC