pub struct Orbit {
pub eccentricity: f32,
pub semi_major_axis: f32,
pub inclination: f32,
pub longitude_of_ascending_node: f32,
pub argument_of_periapsis: f32,
}
Fields§
§eccentricity: f32
§semi_major_axis: f32
§inclination: f32
§longitude_of_ascending_node: f32
§argument_of_periapsis: f32
Implementations§
Source§impl Orbit
impl Orbit
pub fn state_vectors_to_orbit( state_vectors: StateVectors, central_body_mass: f32, ) -> Self
Sourcepub fn standard_gravitational_parameter(mass: f32) -> f32
pub fn standard_gravitational_parameter(mass: f32) -> f32
https://en.wikipedia.org/wiki/Standard_gravitational_parameter
Sourcepub fn mean_motion(&self, mass: f32) -> f32
pub fn mean_motion(&self, mass: f32) -> f32
https://en.wikipedia.org/wiki/Mean_motion
Sourcepub fn mean_anomaly(&self, mass: f32, time: f32) -> f32
pub fn mean_anomaly(&self, mass: f32, time: f32) -> f32
https://en.wikipedia.org/wiki/Mean_anomaly
Sourcepub fn estimate_eccentric_anomaly(
&self,
mass: f32,
time: f32,
tolerance: f32,
) -> f32
pub fn estimate_eccentric_anomaly( &self, mass: f32, time: f32, tolerance: f32, ) -> f32
https://en.wikipedia.org/wiki/Eccentric_anomaly
Eccentric Anomaly (EA) is given by the equation: M = EA - e*sin(EA) where M is the mean anomaly e is the eccentricity
To estimate the Eccentric Anomaly we use Newton’s method https://en.wikipedia.org/wiki/Newton%27s_method
pub fn state_vectors_at_epoch( &self, mass: f32, time: f32, tolerance: f32, ) -> StateVectors
Auto Trait Implementations§
impl Freeze for Orbit
impl RefUnwindSafe for Orbit
impl Send for Orbit
impl Sync for Orbit
impl Unpin for Orbit
impl UnwindSafe for Orbit
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