public static QuaternionFArrayList CreateRandomQuaternionFArray(int count, IFloatRandomNumberGenerator r)
 {
     QuaternionFArrayList result  = new QuaternionFArrayList(count);
     for(int i = 0; i < count; i++)
     {
         result.Add(new QuaternionF(r.NextFloat(),r.NextFloat(), r.NextFloat(),r.NextFloat()));
     }
     return result;
 }
Пример #2
0
        public static QuaternionFArrayList CreateRandomQuaternionFArray(int count, IFloatRandomNumberGenerator r)
        {
            QuaternionFArrayList result = new QuaternionFArrayList(count);

            for (int i = 0; i < count; i++)
            {
                result.Add(new QuaternionF(r.NextFloat(), r.NextFloat(), r.NextFloat(), r.NextFloat()));
            }
            return(result);
        }