Trait veloren_common::vol::SizedVol
source · pub trait SizedVol: BaseVol {
// Required methods
fn lower_bound(&self) -> Vec3<i32>;
fn upper_bound(&self) -> Vec3<i32>;
// Provided method
fn size(&self) -> Vec3<u32> { ... }
}
Expand description
A volume that is a cuboid.
Required Methods§
sourcefn lower_bound(&self) -> Vec3<i32>
fn lower_bound(&self) -> Vec3<i32>
Returns the (inclusive) lower bound of the volume.
sourcefn upper_bound(&self) -> Vec3<i32>
fn upper_bound(&self) -> Vec3<i32>
Returns the (exclusive) upper bound of the volume.