diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-12-13 21:41:08 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-12-13 22:06:01 +0300 |
commit | 9c0df8e27533657f49919e45d46c85c847048d8f (patch) | |
tree | 8437042e03cc707ad6b9f0af1ef9498a5c4a9cd8 /release | |
parent | c6075118d5d35657f9adcd6867b9655962e7386c (diff) |
Fix weird Swing+Twist decomposition with noncanonical quaternions.
It turns out that after the fix to T83196 (rB814b2787cadd) the matrix
to quaternion conversion can produce noncanonical results in large
areas of the rotation space, when previously this was limited to
way smaller areas. This in turn causes Swing+Twist math to produce
angles beyond 180 degrees, e.g. outputting a -120..240 range.
This fixes both issues, ensuring that conversion outputs a canonical
result, and decomposition canonifies its input.
This was reported in chat by @jpbouza.
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions