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
Fields
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§
source§impl Frame
impl Frame
pub fn is_geoid(&self) -> bool
pub fn is_celestial(&self) -> bool
pub fn ephem_path(&self) -> Vec<usize> ⓘ
pub fn frame_path(&self) -> Vec<usize> ⓘ
pub fn gm(&self) -> f64
pub fn equatorial_radius(&self) -> f64
pub fn flattening(&self) -> f64
pub fn flattening_mut(&mut self, new_flattening: f64)
pub fn semi_major_radius(&self) -> f64
sourcepub fn angular_velocity(&self) -> f64
pub fn angular_velocity(&self) -> f64
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
sourcepub fn is_body_fixed(&self) -> bool
pub fn is_body_fixed(&self) -> bool
Returns whether this frame is body fixed or not
Trait Implementations§
source§impl PartialEq<Frame> for Frame
impl PartialEq<Frame> for Frame
impl Copy for Frame
impl StructuralPartialEq for Frame
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> Pointable for T
impl<T> Pointable for T
§impl<T> Printing<T> for Twhere
T: Display,
impl<T> Printing<T> for Twhere T: Display,
§fn to_str(self) -> String
fn to_str(self) -> String
printing.rs
. §fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
printing.rs
.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.