mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +00:00
LibGfx: Add method to Matrix that determines if the matrix is invertible
This commit is contained in:
parent
fcd3b16d63
commit
dec09333a3
1 changed files with 5 additions and 0 deletions
|
@ -223,6 +223,11 @@ public:
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr bool is_invertible() const
|
||||||
|
{
|
||||||
|
return determinant() != 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T m_elements[N][N];
|
T m_elements[N][N];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue