pub struct KeplerianElements { /* private fields */ }
Expand description

Structure representing the keplerian elements of an orbit.

Implementations§

source§

impl KeplerianElements

source

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.

source

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.

source

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.

source

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.

source

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.

source

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

source§

fn clone(&self) -> KeplerianElements

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for KeplerianElements

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<KeplerianElements> for VSOP87Elements

source§

fn from(elts: KeplerianElements) -> Self

Converts to this type from the input type.
source§

impl From<VSOP87Elements> for KeplerianElements

source§

fn from(elts: VSOP87Elements) -> Self

Converts to this type from the input type.
source§

impl PartialEq for KeplerianElements

source§

fn eq(&self, other: &KeplerianElements) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for KeplerianElements

source§

impl StructuralPartialEq for KeplerianElements

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.