mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibGfx: Add method to Matrix that determines if the matrix is invertible
This commit is contained in:
parent
fcd3b16d63
commit
dec09333a3
Notes:
sideshowbarker
2024-07-16 23:40:28 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/dec09333a3 Pull-request: https://github.com/SerenityOS/serenity/pull/17649
1 changed files with 5 additions and 0 deletions
|
@ -223,6 +223,11 @@ public:
|
|||
return result;
|
||||
}
|
||||
|
||||
constexpr bool is_invertible() const
|
||||
{
|
||||
return determinant() != 0.0;
|
||||
}
|
||||
|
||||
private:
|
||||
T m_elements[N][N];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue