[][src]Struct nyx_space::celestia::Cosm

pub struct Cosm { /* fields omitted */ }

Methods

impl Cosm[src]

pub fn from_xb(filename: &str) -> Cosm[src]

Builds a Cosm from the *XB files. Path should not contain file extension. Panics if the files could not be loaded.

pub fn try_from_xb(filename: &str) -> Result<Cosm, IoError>[src]

Attempts to build a Cosm from the *XB files.

pub fn append_xb(&mut self, filename: &str) -> Option<IoError>[src]

pub fn try_frame(&self, name: &str) -> Result<Frame, CosmError>[src]

pub fn frame(&self, name: &str) -> Frame[src]

Returns the geoid from the loaded XB, if it is in there, else panics!

pub fn try_frame_by_exb_id(&self, id: i32) -> Result<Frame, CosmError>[src]

pub fn frame_by_exb_id(&self, id: i32) -> Frame[src]

Returns the geoid from the loaded XB, if it is in there, else panics!

pub fn get_frame_names(&self) -> Vec<String>[src]

Return the names of all the frames

pub fn get_frames(&self) -> Vec<Frame>[src]

Returns all the frames themselves

pub fn try_frame_by_axb_id(&self, id: i32) -> Result<Frame, CosmError>[src]

pub fn frame_by_axb_id(&self, id: i32) -> Frame[src]

Returns the geoid from the loaded XB, if it is in there, else panics!

pub fn frames(&self) -> Vec<Frame>[src]

Returns the list of loaded geoids

pub fn mut_gm_for_frame_id(&mut self, exb_id: i32, new_gm: f64)[src]

Mutates the GM value for the frame used in the ephemeris only (not for every frame at this center)

pub fn mut_gm_for_frame(&mut self, name: &str, new_gm: f64)[src]

Mutates the GM value for the provided geoid id. Panics if ID not found.

pub fn raw_celestial_state(
    &self,
    exb_id: i32,
    jde: f64
) -> Result<State, CosmError>
[src]

Returns the celestial state as computed from a de4xx.{FXB,EXB} file in the original frame

pub fn try_celestial_state(
    &self,
    target_exb_id: i32,
    datetime: Epoch,
    frame: Frame,
    correction: LTCorr
) -> Result<State, CosmError>
[src]

Attempts to return the state of the celestial object of EXB ID exb_id (the target) at time jde as_seen_from

The light time correction is based on SPICE's implementation: https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkezr_c.html . Aberration computation is a conversion of the stelab function in SPICE, available here https://github.com/ChristopherRabotin/cspice/blob/26c72936fb7ff6f366803a1419b7cc3c61e0b6e5/src/cspice/stelab.c#L255

pub fn celestial_state(
    &self,
    target_exb_id: i32,
    datetime: Epoch,
    frame: Frame,
    correction: LTCorr
) -> State
[src]

Returns the state of the celestial object of EXB ID exb_id (the target) at time jde as_seen_from, or panics

pub fn try_frame_chg_dcm_from_to(
    &self,
    from: &Frame,
    to: &Frame,
    dt: Epoch
) -> Result<Matrix3<f64>, CosmError>
[src]

Return the DCM to go from the from frame to the to frame

pub fn try_frame_chg(
    &self,
    state: &State,
    new_frame: Frame
) -> Result<State, CosmError>
[src]

Attempts to return the provided state in the provided frame.

pub fn frame_chg(&self, state: &State, new_frame: Frame) -> State[src]

Return the provided state in the provided frame, or panics

pub fn frame_chg_by_id(&self, state: &State, new_frame: i32) -> State[src]

Return the provided state in the provided frame, or panics

Trait Implementations

impl Debug for Cosm[src]

Auto Trait Implementations

impl !RefUnwindSafe for Cosm

impl !Send for Cosm

impl !Sync for Cosm

impl Unpin for Cosm

impl !UnwindSafe for Cosm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,