View Issue Details

IDProjectCategoryView StatusLast Update
0003063NoesisGUIUnitypublic2024-08-28 14:31
Reporterjphyzic Assigned Tosfernandez  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product Version3.2.2 
Target Version3.2.3Fixed in Version3.2.3 
Summary0003063: Matrix.HasInverse has inverted behaviour.
Description

I've stumbled on a typo in Unity Noesis plugin. Matrix struct has HasInverse property implemented like this:

public bool HasInverse => Math.Abs(Determinant) < 0.0001f;

On the other hand, Invert method looks like this:

public void Invert()
{
float determinant = Determinant;
if (Math.Abs(determinant) < 0.0001f)
throw new InvalidOperationException("Matrix is not Invertible");
...
}

I believe, the check in HasInverse implementation has to be inverted:

public bool HasInverse => Math.Abs(Determinant) >= 0.0001f;

PlatformAny

Activities

sfernandez

sfernandez

2024-02-02 20:18

manager   ~0009159

Thanks a lot for reporting this!

Issue History

Date Modified Username Field Change
2024-02-02 14:42 jphyzic New Issue
2024-02-02 14:51 jphyzic Description Updated
2024-02-02 20:14 sfernandez Assigned To => sfernandez
2024-02-02 20:14 sfernandez Status new => assigned
2024-02-02 20:14 sfernandez Target Version => 3.2.3
2024-02-02 20:18 sfernandez Status assigned => resolved
2024-02-02 20:18 sfernandez Resolution open => fixed
2024-02-02 20:18 sfernandez Fixed in Version => 3.2.3
2024-02-02 20:18 sfernandez Note Added: 0009159
2024-08-28 14:31 jsantos Priority normal => high
2024-08-28 14:31 jsantos Priority high => normal
2025-10-10 13:29 jsantos Category Unity3D => Unity