I found the Vector3 type in System.Numerics, but for some reason it is not in my system. What namespace is it in? Or do you need to write the 3d vector yourself? I have not seen this since 2010. I am writing on pure C #, not on Unity, and I cannot find the answer in a bunch of unnecessary information ..
2 answers
System.Numerics comes in a nuget package and is also available for 4.5. But it does not shine with a wealth of types - try looking at Math.NET Numerics in the matrix section, everything is much more spread out.
- System.Numerics.Vectors use SIMD at the hardware level, which greatly speeds up calculations. - Alexander Petrov
- I remember that Math.NET from below also uses native libraries (like Intel’s), but I can be wrong. - Alexander Alexeev
- oneI looked at the stack of technologies that can be used, was very surprised. The FinMath Numerical Library matrix package uses Intel's libraries (also not free), and these libraries fall under sanctions. Including use in countries such as Iran, Syria and the Crimea. That is, with commercial use, they may not be sold, and if sold, then "weapons (biological, chemical, nuclear) are not allowed for development", and there are still checks on serial numbers - in short, they use the capabilities of their hardware, and this code - hung with bugs ... - Ilia Ivanov
- Although I do not care. - Ilia Ivanov
|
The Vector3 type appeared in .NET 4.6. Accordingly, it is not in .NET 4.5.
|