pub struct UgrTable {
pub crosswise: Vec<Vec<f64>>,
pub endwise: Vec<Vec<f64>>,
pub room_sizes: Vec<(f64, f64)>,
pub reflectances: Vec<(u8, u8, u8)>,
pub max_ugr: f64,
}Expand description
Unified Glare Rating table.
Contains UGR values for standard room dimensions and reflectance combinations, following CIE 117:1995 tabular method.
Fields§
§crosswise: Vec<Vec<f64>>UGR values for crosswise (C90) viewing - indexed as [room_size][reflectance]
endwise: Vec<Vec<f64>>UGR values for endwise (C0) viewing - indexed as [room_size][reflectance]
room_sizes: Vec<(f64, f64)>Room dimensions as (X, Y) in units of H
reflectances: Vec<(u8, u8, u8)>Reflectance combinations (ceiling%, wall%, floor%)
max_ugr: f64Maximum UGR value in table
Implementations§
Source§impl UgrTable
impl UgrTable
Sourcepub fn calculate_sophisticated(ldt: &Eulumdat) -> Self
pub fn calculate_sophisticated(ldt: &Eulumdat) -> Self
Calculate full UGR table using the sophisticated method (calibrated).
Used for benchmarking comparison with the simple method.
Sourcepub fn calculate_simple(ldt: &Eulumdat) -> Self
pub fn calculate_simple(ldt: &Eulumdat) -> Self
Calculate full UGR table using the simple method.
Used for benchmarking comparison with the sophisticated method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UgrTable
impl RefUnwindSafe for UgrTable
impl Send for UgrTable
impl Sync for UgrTable
impl Unpin for UgrTable
impl UnsafeUnpin for UgrTable
impl UnwindSafe for UgrTable
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