public static QuaternionDArrayList CreateRandomQuaternionDArray(int count, IDoubleRandomNumberGenerator r)
 {
     QuaternionDArrayList result  = new QuaternionDArrayList(count);
     for(int i = 0; i < count; i++)
     {
         result.Add(new QuaternionD(r.NextDouble(),r.NextDouble(), r.NextDouble(),r.NextDouble()));
     }
     return result;
 }
Esempio n. 2
0
        public static Vector4DArrayList CreateRandomVector4DArray(int count, IDoubleRandomNumberGenerator r)
        {
            Vector4DArrayList result = new Vector4DArrayList(count);

            for (int i = 0; i < count; i++)
            {
                result.Add(new Vector4D(r.NextDouble(), r.NextDouble(), r.NextDouble(), r.NextDouble()));
            }
            return(result);
        }
        public static ComplexDArrayList CreateRandomComplexDArray(int count, IDoubleRandomNumberGenerator r)
        {
            ComplexDArrayList result = new ComplexDArrayList(count);
            for(int i = 0; i < count; i++)
            {
                result.Add(new ComplexD(r.NextDouble(),r.NextDouble()));
            }

            return result;
        }