Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | BLI_FOREACH_SPARSE_RANGE(src, dst, i) |
General looping helpers, use BLI_FOREACH
prefix.
Definition in file BLI_utildefines_iter.h.
Even value distribution.
src must be larger than dst, dst defines the number of iterations, their values are evenly spaced.
The following pairs represent (src, dst) arguments and the values they loop over.
(19, 4) -> [2, 7, 11. 16] (100, 5) -> [9, 29, 49, 69, 89] (100, 3) -> [16, 49, 83] (100, 100) -> [0..99]
Definition at line 26 of file BLI_utildefines_iter.h.