pub struct TrajectoryParams {Show 17 fields
pub mass_kg: f64,
pub bc: f64,
pub drag_model: DragModel,
pub wind_segments: Vec<WindSegment>,
pub atmos_params: (f64, f64, f64, f64),
pub omega_vector: Option<Vector3<f64>>,
pub enable_spin_drift: bool,
pub enable_magnus: bool,
pub enable_coriolis: bool,
pub target_distance_m: f64,
pub enable_wind_shear: bool,
pub wind_shear_model: String,
pub shooter_altitude_m: f64,
pub is_twist_right: bool,
pub custom_drag_table: Option<DragTable>,
pub bc_segments: Option<Vec<(f64, f64)>>,
pub use_bc_segments: bool,
}Expand description
Parameters for trajectory computation
Fields§
§mass_kg: f64§bc: f64§drag_model: DragModel§wind_segments: Vec<WindSegment>§atmos_params: (f64, f64, f64, f64)§omega_vector: Option<Vector3<f64>>§enable_spin_drift: bool§enable_magnus: bool§enable_coriolis: bool§target_distance_m: f64§enable_wind_shear: bool§wind_shear_model: String§shooter_altitude_m: f64§is_twist_right: bool§custom_drag_table: Option<DragTable>§bc_segments: Option<Vec<(f64, f64)>>§use_bc_segments: boolAuto Trait Implementations§
impl Freeze for TrajectoryParams
impl RefUnwindSafe for TrajectoryParams
impl Send for TrajectoryParams
impl Sync for TrajectoryParams
impl Unpin for TrajectoryParams
impl UnwindSafe for TrajectoryParams
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<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.