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

Creates a new empty Poni.

Reads a buffer as Poni.

Reads a file as Poni.

Serializes PONI structure into pyFAI poni string

Sets poni2 value from Fit2D beam center x

Sets poni1 value from Fit2D beam center y

Sets both poni 1 and 2 values from Fit2D beam center x and y

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.