Enum nyx_space::cosmic::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,
SEZ,
Inertial,
}
Variants
Celestial
Any celestial frame which only has a GM (e.g. 3 body frames)
Geoid
Any Geoid which has a GM, flattening value, etc.
VNC
Velocity, Normal, Cross (called VNB in GMAT)
RCN
Radial, Cross, Normal
RIC
Radial, in-track, normal
SEZ
SEZ or topocentric frame. The positive horizontal vector S is due south , the positive horizontal vector E is east, and the vector Z normal to the surface of the earth (up) is the third axis.
Inertial
Used as a placeholder only
Implementations
pub fn ephem_path(&self) -> Vec<usize>ⓘ
pub fn frame_path(&self) -> Vec<usize>ⓘ
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
Returns whether this frame is body fixed or not
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl UnwindSafe for Frame
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.