#[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: bundleImplementations§
Source§impl source
impl source
pub unsafe fn setup( &mut self, _photometric_band: *const c_char, zenith: f32, azimuth: f32, height: f32, )
pub unsafe fn setup1( &mut self, _photometric_band: *const c_char, zenith: f32, azimuth: f32, height: f32, resolution: c_int, )
pub unsafe fn setup2( &mut self, _photometric_band: *const c_char, zenith: f32, azimuth: f32, height: f32, tag_in: *const c_char, )
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, )
pub unsafe fn setup4( &mut self, _photometric_band: *const c_char, _zenith: *mut f32, _azimuth: *mut f32, _height: f32, _N_SRC: c_int, )
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, )
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, )
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, )
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, )
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, )
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, )
pub unsafe fn cleanup(&mut self)
pub unsafe fn reset_rays(&mut self)
pub unsafe fn reset_rays1(&mut self, RESET_RAYS_MASK: c_int)
pub unsafe fn opd2phase(&mut self)
pub unsafe fn opd2phase1(&mut self, RESET_RAYS_MASK: c_int)
pub unsafe fn info(&mut self)
pub unsafe fn phase2file(&mut self, filename: *const c_char)
pub unsafe fn wavelength(&mut self) -> f32
pub unsafe fn wavelength_micron(&mut self) -> f32
pub unsafe fn spectral_bandwidth(&mut self) -> f32
pub unsafe fn n_photon(&mut self) -> f32
pub unsafe fn n_photon1(&mut self, _magnitude_: f32) -> f32
pub unsafe fn n_background_photon(&mut self, backgroundMagnitude: f32) -> f32
pub unsafe fn wavenumber(&mut self) -> f32
pub unsafe fn update_directions( &mut self, zenith: *mut f64, azimuth: *mut f64, N_DIR: c_int, )
pub unsafe fn update_magnitude(&mut self, magnitude: *mut f32, N_MAG: c_int)
pub unsafe fn copy_magnitude(&mut self, other_src: *mut source)
pub unsafe fn optical_transfer_function(&mut self, d__otf: *mut float2)
Trait Implementations§
impl Copy for source
impl Send for source
Auto Trait Implementations§
impl Freeze for source
impl RefUnwindSafe for source
impl !Sync for source
impl Unpin for source
impl UnwindSafe for source
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more