Пример #1
0
 public void Init()
 {
     fixed (float* orientationsPtr = _orientations) {
         fixed (float* scriptsNAPtr = _scriptsNA) {
             for (int i = 0; i < 4; ++i) {
                 for (int j = 0; j < kMaxNumberOfScripts; ++j) {
                     scriptsNAPtr[i * kMaxNumberOfScripts + j] = 0f;
                 }
                 orientationsPtr[i] = 0f;
             }
         }
     }
     _unicharset = IntPtr.Zero;
     _bestResult = new OSBestResult();
 }
Пример #2
0
        public void Init()
        {
            fixed(float *orientationsPtr = _orientations)
            {
                fixed(float *scriptsNAPtr = _scriptsNA)
                {
                    for (int i = 0; i < 4; ++i)
                    {
                        for (int j = 0; j < kMaxNumberOfScripts; ++j)
                        {
                            scriptsNAPtr[i * kMaxNumberOfScripts + j] = 0f;
                        }
                        orientationsPtr[i] = 0f;
                    }
                }
            }

            _unicharset = IntPtr.Zero;
            _bestResult = new OSBestResult();
        }