mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
Use getDeterminant() method in AffineTransform::inverted()
This commit is contained in:
parent
7b17d42039
commit
3ccbf8bc74
1 changed files with 2 additions and 2 deletions
|
|
@ -179,9 +179,9 @@ AffineTransform AffineTransform::verticalFlip (float height) noexcept
|
|||
|
||||
AffineTransform AffineTransform::inverted() const noexcept
|
||||
{
|
||||
double determinant = (mat00 * mat11 - mat10 * mat01);
|
||||
double determinant = getDeterminant();
|
||||
|
||||
if (determinant != 0)
|
||||
if (! approximatelyEqual (determinant, 0.0))
|
||||
{
|
||||
determinant = 1.0 / determinant;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue