I am trying to convert double[] to IntPtr in C#. Here is the data I am going to convert:
double[] rotX = { 1.0, 0.0, 0.0 };
double[] rotY = { 0.0, 1.0, 0.0 };
double[] rotZ = { 0.0, 0.0, 1.0 };
Here is the function I am going to feed in the IntPtr, which is converted from the array above:
SetRotationDirection(IntPtr rotX, IntPtr rotY, IntPtr rotZ);
How should I do the job?