pub struct ResolvedShotV1 {
pub max_range_m: f64,
pub zero_distance_m: Option<f64>,
pub muzzle_angle_rad: f64,
pub aim_azimuth_rad: f64,
pub shot_azimuth_rad: f64,
pub shooting_angle_rad: f64,
pub cant_angle_rad: f64,
pub target_height_m: f64,
pub ground_threshold_m: f64,
}Expand description
Resolved shot geometry.
zero_distance_m records caller zeroing intent, while muzzle_angle_rad is always the
effective angle used by the engine. A zero-distance solve therefore populates both fields.
Fields§
§max_range_m: f64§zero_distance_m: Option<f64>§muzzle_angle_rad: f64§aim_azimuth_rad: f64§shot_azimuth_rad: f64§shooting_angle_rad: f64§cant_angle_rad: f64§target_height_m: f64§ground_threshold_m: f64Trait Implementations§
Source§impl Clone for ResolvedShotV1
impl Clone for ResolvedShotV1
Source§fn clone(&self) -> ResolvedShotV1
fn clone(&self) -> ResolvedShotV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedShotV1
impl Debug for ResolvedShotV1
Source§impl<'de> Deserialize<'de> for ResolvedShotV1
impl<'de> Deserialize<'de> for ResolvedShotV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolvedShotV1
impl PartialEq for ResolvedShotV1
Source§impl Serialize for ResolvedShotV1
impl Serialize for ResolvedShotV1
impl StructuralPartialEq for ResolvedShotV1
Auto Trait Implementations§
impl Freeze for ResolvedShotV1
impl RefUnwindSafe for ResolvedShotV1
impl Send for ResolvedShotV1
impl Sync for ResolvedShotV1
impl Unpin for ResolvedShotV1
impl UnsafeUnpin for ResolvedShotV1
impl UnwindSafe for ResolvedShotV1
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
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.