Skip to main content

atmosphere

Struct atmosphere 

Source
#[repr(C)]
pub struct atmosphere {
Show 28 fields pub photometric_band: *mut c_char, pub wavelength: f32, pub r0: f32, pub wavenumber: f32, pub N_LAYER: c_int, pub field_size: f32, pub layers_OSF: c_int, pub layers_duration: f32, pub layers_tau0: f32, pub W: f32, pub N_W: c_int, pub phase_screen_LAYER: *mut f32, pub N_DURATION: c_int, pub LOCAL_RAND_SEED: c_int, pub ID: c_int, pub EPH: f32, pub d__phase_screen_LAYER: *mut f32, pub N_PHASE_LAYER: c_ulong, pub mmap_size: usize, pub zeta1: *mut f32, pub eta1: *mut f32, pub zeta2: *mut f32, pub eta2: *mut f32, pub devStates: *mut curandState, pub turbulence: profile, pub d__turbulence: *mut profile, pub layers: *mut layer, pub d__layers: *mut layer,
}

Fields§

§photometric_band: *mut c_char§wavelength: f32§r0: f32§wavenumber: f32§N_LAYER: c_int§field_size: f32§layers_OSF: c_int§layers_duration: f32§layers_tau0: f32§W: f32§N_W: c_int§phase_screen_LAYER: *mut f32§N_DURATION: c_int§LOCAL_RAND_SEED: c_int§ID: c_int§EPH: f32§d__phase_screen_LAYER: *mut f32§N_PHASE_LAYER: c_ulong§mmap_size: usize§zeta1: *mut f32§eta1: *mut f32§zeta2: *mut f32§eta2: *mut f32§devStates: *mut curandState§turbulence: profile§d__turbulence: *mut profile§layers: *mut layer§d__layers: *mut layer

Implementations§

Source§

impl atmosphere

Source

pub unsafe fn setup( &mut self, r0_: f32, L0: f32, N_LAYER: c_int, altitude: *mut f32, xi0: *mut f32, wind_speed: *mut f32, wind_direction: *mut f32, )

Source

pub unsafe fn setup1( &mut self, r0_: f32, L0: f32, N_LAYER: c_int, altitude: *mut f32, xi0: *mut f32, wind_speed: *mut f32, wind_direction: *mut f32, _L_: f32, _NXY_PUPIL_: c_int, field_size: f32, duration: f32, )

Source

pub unsafe fn setup2( &mut self, r0_: f32, L0: f32, _NLAYER: c_int, altitude: *mut f32, xi0: *mut f32, wind_speed: *mut f32, wind_direction: *mut f32, _L_: f32, _NXY_PUPIL_: c_int, field_size: f32, duration: f32, fullpath_to_phasescreens: *const c_char, _N_DURATION: c_int, )

Source

pub unsafe fn gmt_setup(&mut self)

Source

pub unsafe fn gmt_setup1(&mut self, r0_: f32, L0: f32)

Source

pub unsafe fn gmt_setup2( &mut self, r0_: f32, L0: f32, _L_: f32, _NXY_PUPIL_: c_int, field_size: f32, duration: f32, )

Source

pub unsafe fn gmt_setup3( &mut self, r0_: f32, L0: f32, _L_: f32, _NXY_PUPIL_: c_int, field_size: f32, duration: f32, fullpath_to_phasescreens: *const c_char, _N_DURATION: c_int, )

Source

pub unsafe fn gmt_setup4(&mut self, r0_: f32, L0: f32, _RAND_SEED_: c_int)

Source

pub unsafe fn gmt_setup5( &mut self, r0_: f32, L0: f32, _L_: f32, _NXY_PUPIL_: c_int, field_size: f32, duration: f32, _RAND_SEED_: c_int, )

Source

pub unsafe fn gmt_setup6( &mut self, r0_: f32, L0: f32, _L_: f32, _NXY_PUPIL_: c_int, field_size: f32, duration: f32, fullpath_to_phasescreens: *const c_char, _N_DURATION: c_int, _RAND_SEED_: c_int, )

Source

pub unsafe fn gmt_set_id(&mut self, _ID_: c_int)

Source

pub unsafe fn gmt_set_eph(&mut self, _EPH_: f32)

Source

pub unsafe fn cleanup(&mut self)

Source

pub unsafe fn info(&mut self)

Source

pub unsafe fn reset(&mut self)

Source

pub unsafe fn save_layer_phasescreens( &mut self, fullpath_to_phasescreens: *const c_char, _N_DURATION: c_int, )

Source

pub unsafe fn get_phase_screen( &mut self, phase_screen: *mut f32, x: *const f32, y: *const f32, N_xy: c_int, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen1( &mut self, x: *const f32, y: *const f32, N_xy: c_int, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen2( &mut self, delta_x: f32, N_x: c_int, delta_y: f32, N_y: c_int, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen3( &mut self, phase_screen: *mut f32, delta_x: f32, N_x: c_int, delta_y: f32, N_y: c_int, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen4( &mut self, src: *mut source, delta_x: f32, N_x: c_int, delta_y: f32, N_y: c_int, time: f32, )

Source

pub unsafe fn get_phase_screen5( &mut self, src: *mut source, delta_x: f32, N_x: c_int, delta_y: f32, N_y: c_int, time: f32, exponent: f32, )

Source

pub unsafe fn get_phase_screen6( &mut self, src: *mut source, N_SRC: c_int, delta_x: f32, N_x: c_int, delta_y: f32, N_y: c_int, time: f32, )

Source

pub unsafe fn get_phase_screen7(&mut self, src: *mut source, time: f32)

Source

pub unsafe fn get_phase_screen_gradient( &mut self, sx: *mut f32, sy: *mut f32, x: *mut f32, y: *mut f32, Nxy: c_int, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen_gradient1( &mut self, sx: *mut f32, sy: *mut f32, NL: c_int, d: f32, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen_gradient2( &mut self, sx: *mut f32, sy: *mut f32, NL: c_int, valid_lenslet: *mut c_char, d: f32, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen_gradient3( &mut self, cog: *mut centroiding, NL: c_int, d: f32, src: *mut source, time: f32, )

Source

pub unsafe fn get_phase_screen_gradient_rolling_shutter( &mut self, cog: *mut centroiding, NL: c_int, d: f32, src: *mut source, time: f32, delay: f32, )

Source

pub unsafe fn get_phase_screen_gradient4( &mut self, cog: *mut centroiding, NL: c_int, d: f32, src: *mut source, N_SRC: c_int, time: f32, )

Source

pub unsafe fn get_phase_screen_gradient5( &mut self, cog: *mut centroiding, NL: c_int, valid_lenslet: *mut c_char, d: f32, src: *mut source, N_SRC: c_int, time: f32, )

Source

pub unsafe fn get_phase_screen_circ_centroids( &mut self, cog: *mut centroiding, R: f32, src: *mut source, N_SRC: c_int, time: f32, )

Source

pub unsafe fn rayTracing( &mut self, x_PUPIL: *const f32, y_PUPIL: *const f32, phase_screen_PUPIL: *mut f32, NXY_PUPIL: c_int, src: *const source, tau: f32, )

Source

pub unsafe fn rayTracing1( &mut self, src: *mut source, delta_x: f32, N_X: c_int, delta_y: f32, N_Y: c_int, tau: f32, )

Trait Implementations§

Source§

impl Clone for atmosphere

Source§

fn clone(&self) -> atmosphere

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 atmosphere

Source§

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

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

impl Default for atmosphere

Source§

fn default() -> Self

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

impl Copy for atmosphere

Source§

impl Send for atmosphere

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, 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.