public static void VectorLoop(Vector3D start, Vector3D end, Action <double, double, double> coordFunction, double iteration) { var region = new VectorCubeD(start, end); for (var y = region.Start.Y; y <= region.End.Y; y += iteration) { for (var z = region.Start.Z; z <= region.End.Z; z += iteration) { for (var x = region.Start.X; x < region.End.X; x += iteration) { coordFunction(x, y, z); } } } }
public static void VectorLoop(VectorCubeD region, Action <int, int, int> coordFunction) { VectorLoop(region.Start, region.End, coordFunction); }