pub struct BallisticInputs {Show 51 fields
pub bc_value: f64,
pub bc_type: DragModel,
pub bullet_mass: f64,
pub muzzle_velocity: f64,
pub bullet_diameter: f64,
pub bullet_length: f64,
pub muzzle_angle: f64,
pub target_distance: f64,
pub azimuth_angle: f64,
pub shooting_angle: f64,
pub sight_height: f64,
pub muzzle_height: f64,
pub target_height: f64,
pub ground_threshold: f64,
pub altitude: f64,
pub temperature: f64,
pub pressure: f64,
pub humidity: f64,
pub latitude: Option<f64>,
pub wind_speed: f64,
pub wind_angle: f64,
pub twist_rate: f64,
pub is_twist_right: bool,
pub caliber_inches: f64,
pub weight_grains: f64,
pub manufacturer: Option<String>,
pub bullet_model: Option<String>,
pub bullet_id: Option<String>,
pub bullet_cluster: Option<usize>,
pub use_rk4: bool,
pub use_adaptive_rk45: bool,
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 custom_drag_table: Option<DragTable>,
pub bc_type_str: Option<String>,
}Fields§
§bc_value: f64§bc_type: DragModel§bullet_mass: f64§muzzle_velocity: f64§bullet_diameter: f64§bullet_length: f64§muzzle_angle: f64§target_distance: f64§azimuth_angle: f64§shooting_angle: f64§sight_height: f64§muzzle_height: f64§target_height: f64§ground_threshold: f64§altitude: f64§temperature: f64§pressure: f64§humidity: f64§latitude: Option<f64>§wind_speed: f64§wind_angle: f64§twist_rate: f64§is_twist_right: bool§caliber_inches: f64§weight_grains: f64§manufacturer: Option<String>§bullet_model: Option<String>§bullet_id: Option<String>§bullet_cluster: Option<usize>§use_rk4: bool§use_adaptive_rk45: bool§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§custom_drag_table: Option<DragTable>§bc_type_str: Option<String>Trait Implementations§
Source§impl Clone for BallisticInputs
impl Clone for BallisticInputs
Source§fn clone(&self) -> BallisticInputs
fn clone(&self) -> BallisticInputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BallisticInputs
impl Debug for BallisticInputs
Auto Trait Implementations§
impl Freeze for BallisticInputs
impl RefUnwindSafe for BallisticInputs
impl Send for BallisticInputs
impl Sync for BallisticInputs
impl Unpin for BallisticInputs
impl UnwindSafe for BallisticInputs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.