So, I’m converting a bunch of classes to Mono for Unity, and I bumped into the System.Numerics.Complex class.
Is there a Mono counterpart or something? How do I handle complex numbers?
So, I’m converting a bunch of classes to Mono for Unity, and I bumped into the System.Numerics.Complex class.
Is there a Mono counterpart or something? How do I handle complex numbers?
System.Numerics.Complex was introduced in .NET 4.0. Unity’s version of Mono is about equivalent to .NET 2.0. So the short answer is you can’t use this class.
There should be other complex libraries around that you can implement.
Maybe you need to enable Full NET (instead of “subset NET”) in player settings?