mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 06:34:01 +00:00
common/math: replace isinfinite() with isinf()
This commit is contained in:
parent
6db6672567
commit
6baeca91d8
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ bool inverse(const Matrix* m, Matrix* out)
|
|||
m->e13 * (m->e21 * m->e32 - m->e22 * m->e31);
|
||||
|
||||
auto invDet = 1.0f / det;
|
||||
if (!std::isfinite(invDet)) return false;
|
||||
if (std::isinf(invDet)) return false;
|
||||
|
||||
out->e11 = (m->e22 * m->e33 - m->e32 * m->e23) * invDet;
|
||||
out->e12 = (m->e13 * m->e32 - m->e12 * m->e33) * invDet;
|
||||
|
|
Loading…
Add table
Reference in a new issue