Enum satkit::SolarSystem
source · pub enum SolarSystem {
MERCURY = 0,
VENUS = 1,
EMB = 2,
MARS = 3,
JUPITER = 4,
SATURN = 5,
URANUS = 6,
NEPTUNE = 7,
PLUTO = 8,
MOON = 9,
SUN = 10,
}Expand description
Solar system bodies
Coordinate origin is the solar system barycenter
§Notes:
- For native JPL Ephemerides function calls: positions for all bodies are natively relative to solar system barycenter, with exception of moon, which is computed in Geocentric system
- EMB (2) is the Earth-Moon barycenter
- The sun position is relative to the solar system barycenter (it will be close to origin)
Variants§
MERCURY = 0
Mercury
VENUS = 1
Venus
EMB = 2
Earth-Moon Barycenter
MARS = 3
Mars
JUPITER = 4
Jupiter
SATURN = 5
Saturn
URANUS = 6
Uranus
NEPTUNE = 7
Neptune
PLUTO = 8
Pluto
MOON = 9
Moon (Geocentric)
SUN = 10
Sun
Trait Implementations§
source§impl Clone for SolarSystem
impl Clone for SolarSystem
source§fn clone(&self) -> SolarSystem
fn clone(&self) -> SolarSystem
Returns a copy 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 moresource§impl Debug for SolarSystem
impl Debug for SolarSystem
source§impl PartialEq for SolarSystem
impl PartialEq for SolarSystem
source§fn eq(&self, other: &SolarSystem) -> bool
fn eq(&self, other: &SolarSystem) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<i32> for SolarSystem
impl TryFrom<i32> for SolarSystem
impl Copy for SolarSystem
impl Eq for SolarSystem
impl StructuralPartialEq for SolarSystem
Auto Trait Implementations§
impl Freeze for SolarSystem
impl RefUnwindSafe for SolarSystem
impl Send for SolarSystem
impl Sync for SolarSystem
impl Unpin for SolarSystem
impl UnwindSafe for SolarSystem
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<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.