コード例 #1
0
 /// <summary>
 /// Map matrix over a set of point3i's
 /// </summary>
 /// <param name="sizeVector"></param>
 /// <param name="callback"></param>
 public static void MapMatrix(Point3i sizeVector, DelegatePoint3i callback)
 {
     MapMatrix(
         sizeVector.ToArray(),
         delegate(int i, int[] vector)
     {
         callback(i, new Point3i(vector));
     }
         );
 }
コード例 #2
0
 /// <summary>
 /// Map matrix multithreaded. Call the delegate callback for each item in the matrix.
 /// Currently obsolete
 /// </summary>
 /// <param name="sizeVector"></param>
 /// <param name="callback"></param>
 public static void MapMatrixMT(Point3i sizeVector, DelegateXYZ callback)
 {
     MapMatrix(sizeVector.ToArray(), delegate(int i, int[] vector) { callback(vector[0], vector[1], vector[2]); });
 }
コード例 #3
0
 /// <summary>
 /// Map matrix multithreaded. Call the delegate callback for each item in the matrix.
 /// </summary>
 /// <param name="sizeVector">Size of the matrix</param>
 /// <param name="delegateVector">Delegate to execute for each vector</param>
 public static void MapMatrixMT(Point3i sizeVector, DelegateVector delegateVector)
 {
     MapMatrixMT(sizeVector.ToArray(), delegateVector);
 }