bundle

Struct bundle 

Source
#[repr(C)]
pub struct bundle {
Show 21 fields pub N_RAY: c_int, pub d__ray: *mut ray, pub N_BUNDLE: c_int, pub N_RAY_TOTAL: c_int, pub d__origin: *mut vector, pub rot_angle: f64, pub d__chief_ray: *mut ray, pub d__chief_origin: *mut vector, pub V: mask, pub geom: [c_char; 8], pub N_RADIUS: c_int, pub N_THETA: c_int, pub N_L: c_int, pub L: rtd, pub d__sphere_distance: *mut rtd, pub d__sphere_radius: *mut rtd, pub d__sphere_origin: *mut vector, pub d__piston_mask: *mut c_int, pub refractive_index: rtd, pub d__Vx: *mut f64, pub d__Vy: *mut f64,
}

Fields§

§N_RAY: c_int§d__ray: *mut ray§N_BUNDLE: c_int§N_RAY_TOTAL: c_int§d__origin: *mut vector§rot_angle: f64§d__chief_ray: *mut ray§d__chief_origin: *mut vector§V: mask§geom: [c_char; 8]§N_RADIUS: c_int§N_THETA: c_int§N_L: c_int§L: rtd§d__sphere_distance: *mut rtd§d__sphere_radius: *mut rtd§d__sphere_origin: *mut vector§d__piston_mask: *mut c_int§refractive_index: rtd§d__Vx: *mut f64§d__Vy: *mut f64

Implementations§

Source§

impl bundle

Source

pub unsafe fn setup( &mut self, RADIUS: rtd, N_RADIUS: c_int, N_THETA: c_int, origin: vector, N_SRC: c_int, )

Source

pub unsafe fn setup1( &mut self, L: rtd, N_L: c_int, origin: vector, N_SRC: c_int, )

Source

pub unsafe fn setup2( &mut self, L: rtd, N_L: c_int, origin: vector, chief_origin: vector, N_SRC: c_int, )

Source

pub unsafe fn setup_free( &mut self, _N_RAY_: c_int, x: *mut f64, y: *mut f64, origin: vector, )

Source

pub unsafe fn setup_free1( &mut self, zenith: f64, azimuth: f64, _N_RAY_: c_int, x: *mut f64, y: *mut f64, origin: vector, )

Source

pub unsafe fn cleanup(&mut self)

Source

pub unsafe fn to_z_plane(&mut self, z_in: rtd)

Source

pub unsafe fn to_focal_plane( &mut self, z_chief_on_axis: rtd, rho_focal_plane: rtd, )

Source

pub unsafe fn to_sphere(&mut self, sphere_origin: vector)

Source

pub unsafe fn to_sphere1(&mut self, z_chief_on_axis: rtd, rho_focal_plane: rtd)

Source

pub unsafe fn get_coordinates(&mut self, d__coord: *mut f64)

Source

pub unsafe fn get_chief_coordinates(&mut self, d__coord: *mut f64)

Source

pub unsafe fn get_sphere_origins(&mut self, d__coord: *mut f64)

Source

pub unsafe fn get_directions(&mut self, d__dir: *mut f64)

Source

pub unsafe fn get_chief_directions(&mut self, d__dir: *mut f64)

Source

pub unsafe fn get_chief_optical_path_length(&mut self, d__opl: *mut f64)

Source

pub unsafe fn get_optical_path_length(&mut self, d__opl: *mut f64)

Source

pub unsafe fn get_optical_path_difference(&mut self, d__opd: *mut f64)

Source

pub unsafe fn get_optical_path_difference1( &mut self, d__opd: *mut f64, delta_x: f32, N_x: c_int, delta_y: f32, N_y: c_int, )

Source

pub unsafe fn get_vignetting(&mut self, d__v: *mut f64)

Source

pub unsafe fn get_n_iteration(&mut self, n_iteration: *mut c_int)

Source

pub unsafe fn gmt_truss_onaxis(&mut self)

Source

pub unsafe fn gmt_truss_onaxis_1(&mut self, scale: f64)

Source

pub unsafe fn gmt_truss_onaxis_2(&mut self, scale: f64)

Source

pub unsafe fn gmt_truss_onaxis_3(&mut self, scale: f64)

Source

pub unsafe fn gmt_pma_onaxis(&mut self)

Source

pub unsafe fn gmt_pma_plate_onaxis(&mut self)

Source

pub unsafe fn gmt_m2_baffle(&mut self)

Trait Implementations§

Source§

impl Clone for bundle

Source§

fn clone(&self) -> bundle

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 bundle

Source§

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

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

impl Default for bundle

Source§

fn default() -> Self

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

impl Copy for bundle

Source§

impl Send for bundle

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.