pub struct ReticleHold {
pub down_mil: f64,
pub right_mil: f64,
pub nearest_mark: Option<usize>,
pub nearest_mark_distance_mil: f64,
pub off_reticle: bool,
pub mark_scale: f64,
}Expand description
Where a firing solution lands in a reticle (MBA-1361).
Fields§
§down_mil: f64TRUE angular milliradians BELOW center — equal to the supplied angular drop. See the module’s conventions section for why this is an identity and not a transform.
right_mil: f64TRUE angular milliradians RIGHT of center — equal to the supplied angular wind deflection.
nearest_mark: Option<usize>Index into ReticleDescription::marks of the mark nearest the hold, in TRUE
angular space (i.e. after SFP scaling). None only when the reticle has no marks,
which hold_point_in_reticle rejects — so in practice this is always Some.
nearest_mark_distance_mil: f64Euclidean distance (mil) from the hold to that mark, measured in TRUE angular
space. 0.0 when the hold lands exactly on a mark.
off_reticle: boolTrue when the hold falls outside the marks’ bounding box grown by
OFF_RETICLE_MARGIN_FRACTION of that box’s span, PER AXIS.
Precisely: let [lo, hi] be the min/max of the TRUE-angular mark coordinates on an
axis and m = OFF_RETICLE_MARGIN_FRACTION * (hi - lo); the hold is off-reticle
when it lies outside [lo - m, hi + m] on either axis. A degenerate axis (all
marks share a coordinate, e.g. a pure BDC ladder with no windage marks) has
m == 0, so ANY deviation on that axis reads as off-reticle. That is deliberate:
such a reticle genuinely offers nothing to hold on in that direction.
mark_scale: f64The SFP subtension scale actually applied to the marks
(reference_magnification / magnification); exactly 1.0 for FFP.
Trait Implementations§
Source§impl Clone for ReticleHold
impl Clone for ReticleHold
Source§fn clone(&self) -> ReticleHold
fn clone(&self) -> ReticleHold
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReticleHold
impl Debug for ReticleHold
Source§impl<'de> Deserialize<'de> for ReticleHold
impl<'de> Deserialize<'de> for ReticleHold
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>,
Source§impl PartialEq for ReticleHold
impl PartialEq for ReticleHold
Source§impl Serialize for ReticleHold
impl Serialize for ReticleHold
impl StructuralPartialEq for ReticleHold
Auto Trait Implementations§
impl Freeze for ReticleHold
impl RefUnwindSafe for ReticleHold
impl Send for ReticleHold
impl Sync for ReticleHold
impl Unpin for ReticleHold
impl UnsafeUnpin for ReticleHold
impl UnwindSafe for ReticleHold
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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.