source

Struct source 

Source
#[repr(C)]
pub struct source {
Show 20 fields pub N_SRC: c_int, pub zenith: f32, pub azimuth: f32, pub height: f32, pub theta_x: f32, pub theta_y: f32, pub _zenith_64_: rtd, pub _azimuth_64_: rtd, pub _height_64_: rtd, pub _theta_x_64_: rtd, pub _theta_y_64_: rtd, pub photometric_band: *const c_char, pub magnitude: f32, pub N_PHOTON: f32, pub fwhm: f32, pub wavefront: complex_amplitude, pub dev_ptr: *mut source, pub tag: [c_char; 8], pub rays_exist: c_char, pub rays: bundle,
}

Fields§

§N_SRC: c_int§zenith: f32§azimuth: f32§height: f32§theta_x: f32§theta_y: f32§_zenith_64_: rtd§_azimuth_64_: rtd§_height_64_: rtd§_theta_x_64_: rtd§_theta_y_64_: rtd§photometric_band: *const c_char§magnitude: f32§N_PHOTON: f32§fwhm: f32§wavefront: complex_amplitude§dev_ptr: *mut source§tag: [c_char; 8]§rays_exist: c_char§rays: bundle

Implementations§

Source§

impl source

Source

pub unsafe fn setup( &mut self, _photometric_band: *const c_char, zenith: f32, azimuth: f32, height: f32, )

Source

pub unsafe fn setup1( &mut self, _photometric_band: *const c_char, zenith: f32, azimuth: f32, height: f32, resolution: c_int, )

Source

pub unsafe fn setup2( &mut self, _photometric_band: *const c_char, zenith: f32, azimuth: f32, height: f32, tag_in: *const c_char, )

Source

pub unsafe fn setup3( &mut self, _photometric_band: *const c_char, zenith: f32, azimuth: f32, height: f32, resolution: c_int, tag_in: *const c_char, )

Source

pub unsafe fn setup4( &mut self, _photometric_band: *const c_char, _zenith: *mut f32, _azimuth: *mut f32, _height: f32, _N_SRC: c_int, )

Source

pub unsafe fn setup5( &mut self, _photometric_band: *const c_char, _zenith: *mut f32, _azimuth: *mut f32, _height: f32, _N_SRC: c_int, resolution: c_int, )

Source

pub unsafe fn setup6( &mut self, _photometric_band: *const c_char, _zenith: *mut f32, _azimuth: *mut f32, _height: f32, _N_SRC: c_int, _L_: rtd, _N_L_: c_int, origin: vector, )

Source

pub unsafe fn setup7( &mut self, _photometric_band: *const c_char, magnitude: *mut f32, _zenith: *mut f32, _azimuth: *mut f32, _height: f32, _N_SRC: c_int, _L_: rtd, _N_L_: c_int, origin: vector, )

Source

pub unsafe fn setup8( &mut self, _photometric_band: *const c_char, magnitude: *mut f32, _zenith: *mut rtd, _azimuth: *mut rtd, _height: f32, _N_SRC: c_int, _L_: rtd, _N_L_: c_int, origin: vector, )

Source

pub unsafe fn setup_chief( &mut self, _photometric_band: *const c_char, magnitude: *mut f32, _zenith: *mut rtd, _azimuth: *mut rtd, _height: f32, _N_SRC: c_int, _L_: rtd, _N_L_: c_int, origin: vector, chief_origin: vector, )

Source

pub unsafe fn setup9( &mut self, _photometric_band: *const c_char, _magnitude: *mut f32, _zenith: *mut rtd, _azimuth: *mut rtd, _height: f32, _N_SRC: c_int, _N_RAY_: c_int, x: *mut f64, y: *mut f64, origin: vector, )

Source

pub unsafe fn cleanup(&mut self)

Source

pub unsafe fn reset_rays(&mut self)

Source

pub unsafe fn reset_rays1(&mut self, RESET_RAYS_MASK: c_int)

Source

pub unsafe fn opd2phase(&mut self)

Source

pub unsafe fn opd2phase1(&mut self, RESET_RAYS_MASK: c_int)

Source

pub unsafe fn info(&mut self)

Source

pub unsafe fn phase2file(&mut self, filename: *const c_char)

Source

pub unsafe fn wavelength(&mut self) -> f32

Source

pub unsafe fn wavelength_micron(&mut self) -> f32

Source

pub unsafe fn spectral_bandwidth(&mut self) -> f32

Source

pub unsafe fn n_photon(&mut self) -> f32

Source

pub unsafe fn n_photon1(&mut self, _magnitude_: f32) -> f32

Source

pub unsafe fn n_background_photon(&mut self, backgroundMagnitude: f32) -> f32

Source

pub unsafe fn wavenumber(&mut self) -> f32

Source

pub unsafe fn update_directions( &mut self, zenith: *mut f64, azimuth: *mut f64, N_DIR: c_int, )

Source

pub unsafe fn update_magnitude(&mut self, magnitude: *mut f32, N_MAG: c_int)

Source

pub unsafe fn copy_magnitude(&mut self, other_src: *mut source)

Source

pub unsafe fn optical_transfer_function(&mut self, d__otf: *mut float2)

Trait Implementations§

Source§

impl Clone for source

Source§

fn clone(&self) -> source

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 source

Source§

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

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

impl Default for source

Source§

fn default() -> Self

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

impl Copy for source

Source§

impl Send for source

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.