Re: [fxtf-drafts] [geometry-1] rotateSelf doesn't seem to be clearly defined (#354)

I've discovered that the spec does not mention that for axis-angle rotations, the given vector has to be normalized into a unit vector. Without that step, rotations will be incorrect. I'm writing unit tests in my polyfill.

After I perform unit-vector normalization, I can get my results to be *close* to those of Chrome's DOMMatrix.rotateAxisAngle self, but it is off by a small amount of precision. There's some small difference in the calculation by Chrome vs my JavaScript polyfill; I don't know what that is yet. In my unit tests, I'll check that values are equal to within a small epsilon difference.

-- 
GitHub Notification of comment by trusktr
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/354#issuecomment-2564076766 using your GitHub account


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

Received on Friday, 27 December 2024 22:50:45 UTC