pub struct Plane { /* private fields */ }
Implementations
sourceimpl Plane
impl Plane
pub fn angle(&self) -> f64
pub fn set_angle<T: Into<f64>>(&mut self, val: T) -> &mut Self
pub fn width(&self) -> &PlaneWidth
pub fn set_width<T: Into<PlaneWidth>>(&mut self, val: T) -> &mut Self
pub fn orientation(&self) -> &PlaneOrientation
pub fn set_orientation<T: Into<PlaneOrientation>>(&mut self, val: T) -> &mut Self
pub fn angles(&self) -> &[f64]
pub fn set_angles<T: Into<f64>>(
&mut self,
val: impl IntoIterator<Item = T>
) -> &mut Self
pub fn intensities(&self) -> &[f64]
pub fn set_intensities<T: Into<f64>>(
&mut self,
val: impl IntoIterator<Item = T>
) -> &mut Self
pub fn units(&self) -> &IntensityUnits
pub fn set_units<T: Into<IntensityUnits>>(&mut self, val: T) -> &mut Self
sourceimpl Plane
impl Plane
pub fn new() -> Self
sourcepub fn set_angle_degrees(&mut self, ang_deg: f64)
pub fn set_angle_degrees(&mut self, ang_deg: f64)
Sets the angle of the plane, given in degrees.
sourcepub fn set_angles_degrees(&mut self, ang_deg: &Vec<f64>)
pub fn set_angles_degrees(&mut self, ang_deg: &Vec<f64>)
Sets the angles, given in degrees.
sourcepub fn n_samples(&self) -> usize
pub fn n_samples(&self) -> usize
Returns the number of angle / intensity pairs in the current plane object.
sourcepub fn angles_deg(&self) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn angles_deg(&self) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Get the internal angles in the object as degrees.
sourcepub fn delta_angle(&self, i: usize) -> f64
pub fn delta_angle(&self, i: usize) -> f64
The delta angle for a given angle in the plane - used for integration.
sourcepub fn integrate_intensity(&self) -> f64
pub fn integrate_intensity(&self) -> f64
Integrate the total energy being emitted by this plane.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Plane
impl Send for Plane
impl Sync for Plane
impl Unpin for Plane
impl UnwindSafe for Plane
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more