Fix degeneracy check for resize transforms
Merged
JI
3mo ago+16+16+01234567890123456789-6-6-0123456789
Prerequisites
- I have written a descriptive pull-request title
- I have verified that there are no overlapping pull-requests open
- I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules :cop:.
- I have provided test coverage for my change (where applicable)
Description
Fixes #3156
Use exact zero determinant checks in TransformUtilities.IsDegenerate for Matrix3x2 and Matrix4x4 instead of epsilon-based near-zero detection, preventing valid transforms from being treated as degenerate during extreme downscales. Added a regression test for issue #3156 to verify resizing large square images (1024/2048) to 1x1 succeeds and preserves the expected pixel.