pub struct ClassicalElements {
pub semi_major_axis: f64,
pub eccentricity: f64,
pub inclination: f64,
pub longitude_ascending_node: f64,
pub argument_periapsis: f64,
pub true_anomaly: f64,
}Expand description
Classical Keplerian elements [a, e, i, Ω, ω, ν].
a is the semi-major axis in the caller’s length unit, e is
dimensionless, and all four angles are radians. Ellipses use a > 0 and
0 <= e < 1; hyperbolae use a < 0 and e > 1.
Fields§
§semi_major_axis: f64Semi-major axis.
eccentricity: f64Eccentricity.
inclination: f64Inclination in [0, π].
longitude_ascending_node: f64Longitude of the ascending node.
argument_periapsis: f64Argument of periapsis.
true_anomaly: f64True anomaly.
Implementations§
Trait Implementations§
Source§impl Clone for ClassicalElements
impl Clone for ClassicalElements
Source§fn clone(&self) -> ClassicalElements
fn clone(&self) -> ClassicalElements
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClassicalElements
Source§impl Debug for ClassicalElements
impl Debug for ClassicalElements
Source§impl From<ClassicalElements> for Elements6
impl From<ClassicalElements> for Elements6
Source§fn from(elements: ClassicalElements) -> Self
fn from(elements: ClassicalElements) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClassicalElements
impl PartialEq for ClassicalElements
impl StructuralPartialEq for ClassicalElements
Auto Trait Implementations§
impl Freeze for ClassicalElements
impl RefUnwindSafe for ClassicalElements
impl Send for ClassicalElements
impl Sync for ClassicalElements
impl Unpin for ClassicalElements
impl UnsafeUnpin for ClassicalElements
impl UnwindSafe for ClassicalElements
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.