[Feature] JMatrix do not have a `!=` and a `==` Operator
MrScautHD opened this issue · 2 comments
MrScautHD commented
Greetings!
I'm eager to propose the inclusion of !=
and ==
operators within JMatrix. This addition would greatly benefit not only myself but potentially many others as well.
MrScautHD commented
Im not needing it anymore.
notgiven688 commented
This was "intentionally left out" of the implementation. Precise float-comparison can be tricky and should rarely be necessary. Consider for example
float a = 1.0f / 0.0f;
float b = 2.0f / 0.0f;
Console.WriteLine((a==b) ? "equal" : "not equal");
a = MathF.Sqrt(-1);
b = MathF.Sqrt(-1);
Console.WriteLine((a==b) ? "equal" : "not equal");