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 (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<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.
impl<U: Copy + LengthUnit, K: Copy + KindMarker> Copy for TypedPeriapsisParam<U, K>
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>
Source§fn eq(&self, other: &TypedPeriapsisParam<U, K>) -> bool
fn eq(&self, other: &TypedPeriapsisParam<U, K>) -> bool
Tests for
self and other values to be equal, and is used by ==.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