mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-24 09:57:08 -06:00
NaN determinants bypassed the singularity check, while determinant and translation overflow could return Some with a bogus or non-finite inverse. Reject non-finite determinants and computed inverse coefficients so callers can take their existing failure paths. Cover all six coefficients with NaN and both infinities, determinant overflow, translation overflow with a finite determinant, and valid extreme translations. Co-authored-by: Lucenx9 <185146821+Lucenx9@users.noreply.github.com>