Enum nyx_space::celestia::eclipse::Frame[][src]

pub enum Frame {
    Celestial {
        gm: f64,
        ephem_path: [Option<usize>; 3],
        frame_path: [Option<usize>; 3],
    },
    Geoid {
        gm: f64,
        flattening: f64,
        equatorial_radius: f64,
        semi_major_radius: f64,
        ephem_path: [Option<usize>; 3],
        frame_path: [Option<usize>; 3],
    },
    VNC,
    RCN,
    RIC,
    Inertial,
}

Variants

Celestial

Any celestial frame which only has a GM (e.g. 3 body frames)

Fields of Celestial

gm: f64ephem_path: [Option<usize>; 3]frame_path: [Option<usize>; 3]
Geoid

Any Geoid which has a GM, flattening value, etc.

Fields of Geoid

gm: f64flattening: f64equatorial_radius: f64semi_major_radius: f64ephem_path: [Option<usize>; 3]frame_path: [Option<usize>; 3]
VNC

Velocity, Normal, Cross

RCN

Radial, Cross, Normal

RIC

Radial, in-track, normal

Inertial

Used as a placeholder only

Implementations

impl Frame[src]

pub fn is_geoid(&self) -> bool[src]

pub fn is_celestial(&self) -> bool[src]

pub fn ephem_path(&self) -> Vec<usize>[src]

pub fn frame_path(&self) -> Vec<usize>[src]

pub fn gm(&self) -> f64[src]

pub fn gm_mut(&mut self, new_gm: f64)[src]

Allows mutuating the GM for this frame

pub fn equatorial_radius(&self) -> f64[src]

pub fn flattening(&self) -> f64[src]

pub fn semi_major_radius(&self) -> f64[src]

pub fn angular_velocity(&self) -> f64[src]

Returns the angular velocity for some planets and moons Source for Earth: G. Xu and Y. Xu, “GPS”, DOI 10.1007/978-3-662-50367-6_2, 2016 (confirmed by https://hpiers.obspm.fr/eop-pc/models/constants.html) Source for everything else: https://en.wikipedia.org/w/index.php?title=Day&oldid=1008298887

Trait Implementations

impl Clone for Frame[src]

impl Copy for Frame[src]

impl Debug for Frame[src]

impl Display for Frame[src]

impl PartialEq<Frame> for Frame[src]

impl StructuralPartialEq for Frame[src]

Auto Trait Implementations

impl RefUnwindSafe for Frame

impl Send for Frame

impl Sync for Frame

impl Unpin for Frame

impl UnwindSafe for Frame

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>,