pub struct TransmittanceReflectance {
pub reflectance: f64,
pub transmittance: f64,
pub absorptance: f64,
}Expand description
Thin-film energy balance: T + R + A = 1.
For a transparent medium (no absorption) T + R = 1.
Fields§
§reflectance: f64Reflectance R ∈ [0, 1].
transmittance: f64Transmittance T ∈ [0, 1].
absorptance: f64Absorptance A ∈ [0, 1].
Implementations§
Source§impl TransmittanceReflectance
impl TransmittanceReflectance
Sourcepub fn new(r: f64, t: f64, a: f64) -> Self
pub fn new(r: f64, t: f64, a: f64) -> Self
Construct from individual components; they are normalised to sum to 1.
Sourcepub fn transparent(r: f64) -> Self
pub fn transparent(r: f64) -> Self
Transparent medium: T = 1 - R, A = 0.
Sourcepub fn from_fresnel_and_beer(r: f64, alpha: f64, thickness: f64) -> Self
pub fn from_fresnel_and_beer(r: f64, alpha: f64, thickness: f64) -> Self
Compute from Fresnel reflectance and a Beer-Lambert absorptance.
Trait Implementations§
Source§impl Clone for TransmittanceReflectance
impl Clone for TransmittanceReflectance
Source§fn clone(&self) -> TransmittanceReflectance
fn clone(&self) -> TransmittanceReflectance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransmittanceReflectance
impl Debug for TransmittanceReflectance
impl Copy for TransmittanceReflectance
Auto Trait Implementations§
impl Freeze for TransmittanceReflectance
impl RefUnwindSafe for TransmittanceReflectance
impl Send for TransmittanceReflectance
impl Sync for TransmittanceReflectance
impl Unpin for TransmittanceReflectance
impl UnsafeUnpin for TransmittanceReflectance
impl UnwindSafe for TransmittanceReflectance
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