Commit 5093398
fix: reject axis permutations in isExlusiveTranslation
The old test coupled the off-diagonal check to val != 1.0, so an
off-diagonal entry equal to 1.0 (e.g. an axis permutation) was not
disqualified. Such matrices were misclassified as pure translations and
simplifyAffineGet then rebuilt them from the last column only, silently
dropping the permutation.
Replace the conflated condition with the three explicit rules: the
translation column accepts any value, diagonal entries must be 1, and
off-diagonal entries must be 0. Permutations now fall through to the
lossless generic affine copy.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f0a58cf commit 5093398
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
0 commit comments