pub struct CentralBody<R>{
pub gm: R,
pub equatorial_radius_m: R,
pub j2: R,
}Expand description
Parameters describing a central gravitating body for weak-field GM recovery.
J2 (the dimensionless quadrupole moment) is only meaningful relative to a reference equatorial radius — the two travel together by construction, so they live in a single struct rather than scattered top-level constants.
gm is included for forward modeling and reference, even though
solve_gm_analytical_kernel is what solves for this value.
Fields§
§gm: RBody-centric gravitational parameter (m³/s²).
equatorial_radius_m: REquatorial reference radius (m) — the radius J2 is referenced to.
j2: RDimensionless J2 oblateness coefficient.
Implementations§
Source§impl CentralBody<f64>
impl CentralBody<f64>
Sourcepub const EARTH_JGM3: CentralBody<f64>
pub const EARTH_JGM3: CentralBody<f64>
Earth, JGM-3 J2 with WGS-84 equatorial radius.
Source§impl<R> CentralBody<R>
impl<R> CentralBody<R>
pub fn new(gm: R, equatorial_radius_m: R, j2: R) -> CentralBody<R>
Trait Implementations§
Source§impl<R> Clone for CentralBody<R>
impl<R> Clone for CentralBody<R>
Source§fn clone(&self) -> CentralBody<R>
fn clone(&self) -> CentralBody<R>
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<R> Copy for CentralBody<R>
Source§impl<R> Debug for CentralBody<R>
impl<R> Debug for CentralBody<R>
Source§impl<R> PartialEq for CentralBody<R>
impl<R> PartialEq for CentralBody<R>
impl<R> StructuralPartialEq for CentralBody<R>
Auto Trait Implementations§
impl<R> Freeze for CentralBody<R>where
R: Freeze,
impl<R> RefUnwindSafe for CentralBody<R>where
R: RefUnwindSafe,
impl<R> Send for CentralBody<R>where
R: Send,
impl<R> Sync for CentralBody<R>where
R: Sync,
impl<R> Unpin for CentralBody<R>where
R: Unpin,
impl<R> UnsafeUnpin for CentralBody<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for CentralBody<R>where
R: 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<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 more