Skip to main content

veloren_world/site/util/
mod.rs

1pub mod gradient;
2pub mod sprites;
3
4use vek::*;
5
6pub fn aabb_iter(aabb: Aabb<i32>) -> impl Iterator<Item = Vec3<i32>> {
7    (aabb.min.x..aabb.max.x).flat_map(move |x| {
8        (aabb.min.y..aabb.max.y)
9            .flat_map(move |y| (aabb.min.z..aabb.max.z).map(move |z| Vec3::new(x, y, z)))
10    })
11}