Skip to main content

BeamFieldAnalysis

Struct BeamFieldAnalysis 

Source
pub struct BeamFieldAnalysis {
    pub beam_angle_ies: f64,
    pub field_angle_ies: f64,
    pub beam_angle_cie: f64,
    pub field_angle_cie: f64,
    pub max_intensity: f64,
    pub center_intensity: f64,
    pub max_intensity_gamma: f64,
    pub is_batwing: bool,
    pub beam_threshold_ies: f64,
    pub beam_threshold_cie: f64,
    pub field_threshold_ies: f64,
    pub field_threshold_cie: f64,
}
Expand description

Comprehensive beam and field angle analysis.

Compares IES (maximum intensity based) and CIE (center-beam intensity based) definitions of beam angle and field angle. This is important for luminaires with non-standard distributions like “batwing” patterns.

See Wikipedia “Beam angle” article for the distinction between these definitions.

Fields§

§beam_angle_ies: f64

Beam angle using IES definition (50% of max intensity) in degrees

§field_angle_ies: f64

Field angle using IES definition (10% of max intensity) in degrees

§beam_angle_cie: f64

Beam angle using CIE definition (50% of center-beam intensity) in degrees

§field_angle_cie: f64

Field angle using CIE definition (10% of center-beam intensity) in degrees

§max_intensity: f64

Maximum intensity anywhere in the distribution (cd/klm)

§center_intensity: f64

Center-beam intensity at nadir/0° gamma (cd/klm)

§max_intensity_gamma: f64

Gamma angle at which maximum intensity occurs (degrees)

§is_batwing: bool

True if this is a “batwing” distribution (center < max)

§beam_threshold_ies: f64

50% of max intensity (IES beam threshold)

§beam_threshold_cie: f64

50% of center intensity (CIE beam threshold)

§field_threshold_ies: f64

10% of max intensity (IES field threshold)

§field_threshold_cie: f64

10% of center intensity (CIE field threshold)

Implementations§

Source§

impl BeamFieldAnalysis

Source

pub fn beam_angle_difference(&self) -> f64

Returns the difference between CIE and IES beam angles.

A large positive value indicates a batwing distribution where the CIE definition gives a wider beam angle.

Source

pub fn field_angle_difference(&self) -> f64

Returns the difference between CIE and IES field angles.

Source

pub fn center_to_max_ratio(&self) -> f64

Returns the ratio of center intensity to max intensity.

A value less than 1.0 indicates a batwing or off-axis peak distribution.

Source

pub fn distribution_type(&self) -> &'static str

Get descriptive classification of the distribution type.

Source

pub fn to_string_detailed(&self) -> String

Format for display with both IES and CIE values.

Trait Implementations§

Source§

impl Clone for BeamFieldAnalysis

Source§

fn clone(&self) -> BeamFieldAnalysis

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BeamFieldAnalysis

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BeamFieldAnalysis

Source§

fn default() -> BeamFieldAnalysis

Returns the “default value” for a type. Read more
Source§

impl Display for BeamFieldAnalysis

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for BeamFieldAnalysis

Source§

fn eq(&self, other: &BeamFieldAnalysis) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for BeamFieldAnalysis

Source§

impl StructuralPartialEq for BeamFieldAnalysis

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.