pub struct TypedPeriapsisParam<U: LengthUnit, K: KindMarker> { /* private fields */ }Expand description
Periapsis-distance parameterisation branded with a specific conic kind K.
Implementations§
Source§impl<U: LengthUnit, K: KindMarker> TypedPeriapsisParam<U, K>
impl<U: LengthUnit, K: KindMarker> TypedPeriapsisParam<U, K>
Sourcepub const fn periapsis_distance(&self) -> Quantity<U>
pub const fn periapsis_distance(&self) -> Quantity<U>
The periapsis distance.
Sourcepub const fn eccentricity(&self) -> f64
pub const fn eccentricity(&self) -> f64
The orbital eccentricity.
Sourcepub const fn into_inner(self) -> PeriapsisParam<U>
pub const fn into_inner(self) -> PeriapsisParam<U>
Returns the inner erased shape, dropping the compile-time kind marker.
Source§impl<U: LengthUnit> TypedPeriapsisParam<U, Elliptic>
impl<U: LengthUnit> TypedPeriapsisParam<U, Elliptic>
Sourcepub fn to_semi_major_axis(&self) -> Option<TypedSemiMajorAxisParam<U, Elliptic>>
pub fn to_semi_major_axis(&self) -> Option<TypedSemiMajorAxisParam<U, Elliptic>>
Converts to elliptic semi-major-axis form.
Returns None if the derived semi-major axis overflows or becomes
non-finite.
Source§impl<U: LengthUnit> TypedPeriapsisParam<U, Hyperbolic>
impl<U: LengthUnit> TypedPeriapsisParam<U, Hyperbolic>
Sourcepub fn to_semi_major_axis(
&self,
) -> Option<TypedSemiMajorAxisParam<U, Hyperbolic>>
pub fn to_semi_major_axis( &self, ) -> Option<TypedSemiMajorAxisParam<U, Hyperbolic>>
Converts to hyperbolic semi-major-axis form.
Returns None if the derived semi-major axis overflows or becomes
non-finite.
Trait Implementations§
Source§impl<U: Clone + LengthUnit, K: Clone + KindMarker> Clone for TypedPeriapsisParam<U, K>
impl<U: Clone + LengthUnit, K: Clone + KindMarker> Clone for TypedPeriapsisParam<U, K>
Source§fn clone(&self) -> TypedPeriapsisParam<U, K>
fn clone(&self) -> TypedPeriapsisParam<U, K>
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<U: LengthUnit, K: KindMarker> ConicShape for TypedPeriapsisParam<U, K>
impl<U: LengthUnit, K: KindMarker> ConicShape for TypedPeriapsisParam<U, K>
Source§fn shape_name() -> &'static str
fn shape_name() -> &'static str
Human-readable name for the characteristic length field.
Source§fn eccentricity(&self) -> f64
fn eccentricity(&self) -> f64
The orbital eccentricity stored in this shape.
Source§impl<U: Debug + LengthUnit, K: Debug + KindMarker> Debug for TypedPeriapsisParam<U, K>
impl<U: Debug + LengthUnit, K: Debug + KindMarker> Debug for TypedPeriapsisParam<U, K>
Source§impl<U: PartialEq + LengthUnit, K: PartialEq + KindMarker> PartialEq for TypedPeriapsisParam<U, K>
impl<U: PartialEq + LengthUnit, K: PartialEq + KindMarker> PartialEq for TypedPeriapsisParam<U, K>
impl<U: Copy + LengthUnit, K: Copy + KindMarker> Copy for TypedPeriapsisParam<U, K>
impl<U: LengthUnit, K: KindMarker> StructuralPartialEq for TypedPeriapsisParam<U, K>
Auto Trait Implementations§
impl<U, K> Freeze for TypedPeriapsisParam<U, K>
impl<U, K> RefUnwindSafe for TypedPeriapsisParam<U, K>where
K: RefUnwindSafe,
U: RefUnwindSafe,
impl<U, K> Send for TypedPeriapsisParam<U, K>
impl<U, K> Sync for TypedPeriapsisParam<U, K>
impl<U, K> Unpin for TypedPeriapsisParam<U, K>
impl<U, K> UnsafeUnpin for TypedPeriapsisParam<U, K>
impl<U, K> UnwindSafe for TypedPeriapsisParam<U, K>where
K: UnwindSafe,
U: UnwindSafe,
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.