pub struct GroundLocation<B: TrySpheroid> { /* private fields */ }Expand description
A location on the surface of a celestial body.
Implementations§
Source§impl<B: Spheroid> GroundLocation<B>
Infallible constructor — requires compile-time Spheroid guarantee.
impl<B: Spheroid> GroundLocation<B>
Infallible constructor — requires compile-time Spheroid guarantee.
Source§impl<B: TrySpheroid> GroundLocation<B>
Fallible constructor — for DynOrigin and other TrySpheroid types.
impl<B: TrySpheroid> GroundLocation<B>
Fallible constructor — for DynOrigin and other TrySpheroid types.
Source§impl<B: TrySpheroid + Into<DynOrigin>> GroundLocation<B>
impl<B: TrySpheroid + Into<DynOrigin>> GroundLocation<B>
Sourcepub fn into_dyn(self) -> DynGroundLocation
pub fn into_dyn(self) -> DynGroundLocation
Converts the ground location into a dynamic representation.
Source§impl<B: TrySpheroid> GroundLocation<B>
impl<B: TrySpheroid> GroundLocation<B>
Sourcepub fn coordinates(&self) -> LonLatAlt
pub fn coordinates(&self) -> LonLatAlt
Returns the geodetic coordinates.
Sourcepub fn body_fixed_position(&self) -> DVec3
pub fn body_fixed_position(&self) -> DVec3
Returns the body-fixed Cartesian position in meters.
Sourcepub fn rotation_to_topocentric(&self) -> DMat3
pub fn rotation_to_topocentric(&self) -> DMat3
Returns the rotation matrix from body-fixed to topocentric (SEZ) frame.
Sourcepub fn compute_observables(
&self,
state_position: DVec3,
state_velocity: DVec3,
) -> Observables
pub fn compute_observables( &self, state_position: DVec3, state_velocity: DVec3, ) -> Observables
Computes topocentric observables from raw body-fixed position and velocity vectors.
Sourcepub fn observables<T: TimeScale + Copy>(
&self,
state: CartesianOrbit<T, B, Iau<B>>,
) -> Observableswhere
B: RotationalElements + Copy,
pub fn observables<T: TimeScale + Copy>(
&self,
state: CartesianOrbit<T, B, Iau<B>>,
) -> Observableswhere
B: RotationalElements + Copy,
Computes topocentric observables from a Cartesian orbit in the body-fixed frame.
Sourcepub fn observables_dyn(&self, state: DynCartesianOrbit) -> Observables
pub fn observables_dyn(&self, state: DynCartesianOrbit) -> Observables
Computes topocentric observables from a dynamic Cartesian orbit.
Trait Implementations§
Source§impl<B: Clone + TrySpheroid> Clone for GroundLocation<B>
impl<B: Clone + TrySpheroid> Clone for GroundLocation<B>
Source§fn clone(&self) -> GroundLocation<B>
fn clone(&self) -> GroundLocation<B>
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 moreAuto Trait Implementations§
impl<B> Freeze for GroundLocation<B>where
B: Freeze,
impl<B> RefUnwindSafe for GroundLocation<B>where
B: RefUnwindSafe,
impl<B> Send for GroundLocation<B>where
B: Send,
impl<B> Sync for GroundLocation<B>where
B: Sync,
impl<B> Unpin for GroundLocation<B>where
B: Unpin,
impl<B> UnsafeUnpin for GroundLocation<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for GroundLocation<B>where
B: 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 moreSource§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.