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
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.