BallisticInputs

Struct BallisticInputs 

Source
pub struct BallisticInputs {
Show 49 fields pub muzzle_velocity: f64, pub launch_angle: f64, pub ballistic_coefficient: f64, pub mass: f64, pub diameter: f64, pub drag_model: DragModel, pub sight_height: f64, pub muzzle_height: f64, pub altitude: f64, pub bc_type: DragModel, pub bc_value: f64, pub caliber_inches: f64, pub weight_grains: f64, pub bullet_diameter: f64, pub bullet_mass: f64, pub bullet_length: f64, pub muzzle_angle: f64, pub target_distance: f64, pub azimuth_angle: f64, pub use_rk4: bool, pub use_adaptive_rk45: bool, pub temperature: f64, pub twist_rate: f64, pub is_twist_right: bool, pub shooting_angle: f64, pub latitude: Option<f64>, pub ground_threshold: f64, pub target_height: f64, pub enable_advanced_effects: bool, pub use_powder_sensitivity: bool, pub powder_temp_sensitivity: f64, pub powder_temp: f64, pub tipoff_yaw: f64, pub tipoff_decay_distance: f64, pub use_bc_segments: bool, pub bc_segments: Option<Vec<(f64, f64)>>, pub bc_segments_data: Option<Vec<BCSegmentData>>, pub use_enhanced_spin_drift: bool, pub use_form_factor: bool, pub enable_wind_shear: bool, pub wind_shear_model: String, pub enable_trajectory_sampling: bool, pub sample_interval: f64, pub enable_pitch_damping: bool, pub enable_precession_nutation: bool, pub use_cluster_bc: bool, pub bc_type_str: Option<String>, pub bullet_model: Option<String>, pub bullet_id: Option<String>,
}

Fields§

§muzzle_velocity: f64§launch_angle: f64§ballistic_coefficient: f64§mass: f64§diameter: f64§drag_model: DragModel§sight_height: f64§muzzle_height: f64§altitude: f64§bc_type: DragModel§bc_value: f64§caliber_inches: f64§weight_grains: f64§bullet_diameter: f64§bullet_mass: f64§bullet_length: f64§muzzle_angle: f64§target_distance: f64§azimuth_angle: f64§use_rk4: bool§use_adaptive_rk45: bool§temperature: f64§twist_rate: f64§is_twist_right: bool§shooting_angle: f64§latitude: Option<f64>§ground_threshold: f64§target_height: f64§enable_advanced_effects: bool§use_powder_sensitivity: bool§powder_temp_sensitivity: f64§powder_temp: f64§tipoff_yaw: f64§tipoff_decay_distance: f64§use_bc_segments: bool§bc_segments: Option<Vec<(f64, f64)>>§bc_segments_data: Option<Vec<BCSegmentData>>§use_enhanced_spin_drift: bool§use_form_factor: bool§enable_wind_shear: bool§wind_shear_model: String§enable_trajectory_sampling: bool§sample_interval: f64§enable_pitch_damping: bool§enable_precession_nutation: bool§use_cluster_bc: bool§bc_type_str: Option<String>§bullet_model: Option<String>§bullet_id: Option<String>

Trait Implementations§

Source§

impl Clone for BallisticInputs

Source§

fn clone(&self) -> BallisticInputs

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 BallisticInputs

Source§

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

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

impl Default for BallisticInputs

Source§

fn default() -> Self

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

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V