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.