/// <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)); } ); }
/// <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]); }); }
/// <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); }