pub struct ShelfGeometry { /* private fields */ }Expand description
The physical shelving arrangement whose run length is being measured.
These are geometry inputs, not thresholds: they describe the shelf being measured, so they belong to the measurement request. The minimum a space must provide is policy and stays with the capability. Keeping the two apart is what stops a threshold drifting back behind the evidence seam.
The arrangement is a layout of parallel bands: each band is
depth_metres deep and served by an aisle horizontal_spacing_metres
wide along one of its long sides. Shelves are stacked in tiers every
vertical_spacing_metres from bottom_elevation_metres up to
top_elevation_metres. In front of every door or opening of the space a
clearance door_clearance_metres deep carries no shelving; a door’s swing
is not known, so the clearance reaches that far from the opening in
every direction.
Implementations§
Source§impl ShelfGeometry
impl ShelfGeometry
Sourcepub fn try_new(
depth_metres: f64,
horizontal_spacing_metres: f64,
vertical_spacing_metres: f64,
bottom_elevation_metres: f64,
top_elevation_metres: f64,
door_clearance_metres: f64,
) -> Result<Self, LinearQuantityError>
pub fn try_new( depth_metres: f64, horizontal_spacing_metres: f64, vertical_spacing_metres: f64, bottom_elevation_metres: f64, top_elevation_metres: f64, door_clearance_metres: f64, ) -> Result<Self, LinearQuantityError>
Rejects a physically impossible arrangement.