pub struct ZonalDegrees {
pub j2: bool,
pub j3: bool,
pub j4: bool,
pub j5: bool,
pub j6: bool,
}Expand description
Active zonal harmonic degrees for ZonalGravity.
Fields§
§j2: boolInclude the J2 oblateness term.
j3: boolInclude the J3 odd zonal term.
j4: boolInclude the J4 zonal term.
j5: boolInclude the J5 zonal term.
j6: boolInclude the J6 zonal term.
Implementations§
Source§impl ZonalDegrees
impl ZonalDegrees
Sourcepub const NONE: ZonalDegrees
pub const NONE: ZonalDegrees
No zonal degrees.
Sourcepub const J2_ONLY: ZonalDegrees
pub const J2_ONLY: ZonalDegrees
J2 only.
Sourcepub const J2_THROUGH_J6: ZonalDegrees
pub const J2_THROUGH_J6: ZonalDegrees
J2 through J6.
Sourcepub const J3_THROUGH_J6: ZonalDegrees
pub const J3_THROUGH_J6: ZonalDegrees
J3 through J6, useful when layering on the legacy crate::astro::forces::J2Gravity.
Sourcepub fn through(max_degree: u8) -> Result<ZonalDegrees, PropagationError>
pub fn through(max_degree: u8) -> Result<ZonalDegrees, PropagationError>
Build a consecutive active set from J2 through max_degree.
Trait Implementations§
Source§impl Clone for ZonalDegrees
impl Clone for ZonalDegrees
Source§fn clone(&self) -> ZonalDegrees
fn clone(&self) -> ZonalDegrees
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 moreimpl Copy for ZonalDegrees
Source§impl Debug for ZonalDegrees
impl Debug for ZonalDegrees
impl Eq for ZonalDegrees
Source§impl PartialEq for ZonalDegrees
impl PartialEq for ZonalDegrees
impl StructuralPartialEq for ZonalDegrees
Auto Trait Implementations§
impl Freeze for ZonalDegrees
impl RefUnwindSafe for ZonalDegrees
impl Send for ZonalDegrees
impl Sync for ZonalDegrees
impl Unpin for ZonalDegrees
impl UnsafeUnpin for ZonalDegrees
impl UnwindSafe for ZonalDegrees
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.