- Home /
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?
i think you need to add to the script using System.Numerics.Complex;
Answer by Kiwasi · Aug 29, 2015 at 06:50 AM
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.
I solved it a long time ago, but thanks anyway for your reply. I managed to use complex numbers by copying the required classes from the $$anonymous$$ono repository hosted on GitHub and then by importing them into my Unity project.
Haha, didn't check the date. I now note that this is not a new question, but someone else bumped it with a comment. Hopefully this will help them.
Still getting used to the new format.
Answer by Paulius-Liekis · Sep 20, 2014 at 08:42 PM
Maybe you need to enable Full NET (instead of "subset NET") in player settings?
Your answer
Follow this Question
Related Questions
Canon EDSDK integration with Unity 3 Answers
What is the version of .net in Unity 5? 4 Answers
Most consistent way to handle Timezones (plus JNI help) 2 Answers
How do I use .NET as a Scripting Backend on PC, Mac & Linux Standalone? 0 Answers
how to reference a .NET 4 targeted, native code wrapper assembly in Unity (beta)? 0 Answers