pub struct UgrParams {
pub room_length: f64,
pub room_width: f64,
pub mounting_height: f64,
pub eye_height: f64,
pub observer_x: f64,
pub observer_y: f64,
pub luminaire_positions: Vec<(f64, f64)>,
pub rho_ceiling: f64,
pub rho_wall: f64,
pub rho_floor: f64,
pub illuminance: f64,
}Expand description
Parameters for UGR calculation
Fields§
§room_length: f64Room length (m)
room_width: f64Room width (m)
mounting_height: f64Mounting height above floor (m)
eye_height: f64Observer eye height (m), typically 1.2m seated, 1.7m standing
observer_x: f64Observer X position (m)
observer_y: f64Observer Y position (m)
luminaire_positions: Vec<(f64, f64)>Luminaire positions as (x, y) tuples
rho_ceiling: f64Ceiling reflectance (0-1)
rho_wall: f64Wall reflectance (0-1)
rho_floor: f64Floor reflectance (0-1)
illuminance: f64Target illuminance (lux)
Implementations§
Source§impl UgrParams
impl UgrParams
Sourcepub fn background_luminance(&self) -> f64
pub fn background_luminance(&self) -> f64
Calculate background luminance from room parameters
Sourcepub fn standard_office() -> Self
pub fn standard_office() -> Self
Create params for a standard office room
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UgrParams
impl RefUnwindSafe for UgrParams
impl Send for UgrParams
impl Sync for UgrParams
impl Unpin for UgrParams
impl UnsafeUnpin for UgrParams
impl UnwindSafe for UgrParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more