Struct integrustio::poni::Poni
source · [−]pub struct Poni {
pub distance: f64,
pub poni1: f64,
pub poni2: f64,
pub pixel1: f64,
pub pixel2: f64,
pub rot1: f64,
pub rot2: f64,
pub rot3: f64,
pub wavelength: f64,
pub version: i32,
}
Expand description
PONI structure.
Fields
distance: f64
Distance in meters.
poni1: f64
PONI 1 in meters.
poni2: f64
PONI 2 in meters.
pixel1: f64
Pixel size 1 in meters.
pixel2: f64
Pixel size 2 in meters.
rot1: f64
Rotation 1 in radians.
rot2: f64
Rotation 2 in radians.
rot3: f64
Rotation 3 in radians.
wavelength: f64
Wavelength of the incoming x-ray beam in meters.
version: i32
PONI file version.
Implementations
sourceimpl Poni
impl Poni
sourcepub fn set_beam_x(&mut self, value: f64)
pub fn set_beam_x(&mut self, value: f64)
Sets poni2 value from Fit2D beam center x
sourcepub fn set_beam_y(&mut self, value: f64)
pub fn set_beam_y(&mut self, value: f64)
Sets poni1 value from Fit2D beam center y
sourcepub fn set_beam_xy(&mut self, x: f64, y: f64)
pub fn set_beam_xy(&mut self, x: f64, y: f64)
Sets both poni 1 and 2 values from Fit2D beam center x and y
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Poni
impl Send for Poni
impl Sync for Poni
impl Unpin for Poni
impl UnwindSafe for Poni
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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