Struct vsop87::KeplerianElements
source · pub struct KeplerianElements { /* private fields */ }
Expand description
Structure representing the keplerian elements of an orbit.
Implementations§
source§impl KeplerianElements
impl KeplerianElements
sourcepub fn eccentricity(&self) -> f64
pub fn eccentricity(&self) -> f64
Gets the eccentricity of the orbit (e).
A number smaller to one would be a closed ellipse, while 0 would be a circle orbit. Values higher than one would be hyperbolic orbits, that are not closed, while a 1 would be a parabolic orbit. Negative values cannot exist.
sourcepub fn semimajor_axis(&self) -> f64
pub fn semimajor_axis(&self) -> f64
Gets the semimajor axis of an orbit (a), in AU (Astronomical units).
This value represents the average distance from the orbiting body to the center of mass.
sourcepub fn inclination(&self) -> f64
pub fn inclination(&self) -> f64
Gets the inclination of the orbit (i), in radians.
This value represents the inclination of the plane where the object is orbiting with respect to the reference plane.
sourcepub fn ascending_node(&self) -> f64
pub fn ascending_node(&self) -> f64
Gets the longitude of the ascending node of the orbit (Ω), in radians.
This value represents the angle in the orbit ellipse of the point where the reference plane and the orbit plane cross when the orbiting body crosses the plane ascending in the orbit.
sourcepub fn periapsis(&self) -> f64
pub fn periapsis(&self) -> f64
Gets the longitude of the periapsis of the orbit (ϖ), in radians.
This value represents the angle in the orbit ellipse of the nearest point of the orbit to the center of mass of the system.
sourcepub fn mean_anomaly(&self) -> f64
pub fn mean_anomaly(&self) -> f64
Gets the mean anomaly of the orbiting object at the given epoch.
This value represents the angle in the orbit ellipse of the orbiting body at the given moment.
Trait Implementations§
source§impl Clone for KeplerianElements
impl Clone for KeplerianElements
source§fn clone(&self) -> KeplerianElements
fn clone(&self) -> KeplerianElements
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeplerianElements
impl Debug for KeplerianElements
source§impl From<KeplerianElements> for VSOP87Elements
impl From<KeplerianElements> for VSOP87Elements
source§fn from(elts: KeplerianElements) -> Self
fn from(elts: KeplerianElements) -> Self
source§impl From<VSOP87Elements> for KeplerianElements
impl From<VSOP87Elements> for KeplerianElements
source§fn from(elts: VSOP87Elements) -> Self
fn from(elts: VSOP87Elements) -> Self
source§impl PartialEq for KeplerianElements
impl PartialEq for KeplerianElements
source§fn eq(&self, other: &KeplerianElements) -> bool
fn eq(&self, other: &KeplerianElements) -> bool
self
and other
values to be equal, and is used
by ==
.