pub struct Landing {
pub body: Option<usize>,
pub time_s: f64,
pub latitude_deg: f64,
pub longitude_deg: f64,
pub east_m: f64,
pub north_m: f64,
pub distance_m: f64,
pub ground_hit_speed_m_s: f64,
pub descent_rate_m_s: f64,
}Expand description
Where something landed: the center of mass as it reached the launch site’s ellipsoidal height.
Fields§
§body: Option<usize>Which separated body (crate::BodyFlight::body), or None for the flight itself: the
stack, or after a powered separation the sustainer.
time_s: f64When, s after launch.
latitude_deg: f64Geodetic latitude, degrees north (WGS 84).
longitude_deg: f64Longitude, degrees east (WGS 84).
east_m: f64East of the launch site in its local frame, m.
north_m: f64North of the launch site, m.
distance_m: f64The horizontal distance from the launch site, m.
ground_hit_speed_m_s: f64The speed of the center of mass at the ground hit, relative to the ground, m/s.
descent_rate_m_s: f64Its downward speed then, m/s.
Implementations§
Source§impl Landing
impl Landing
Sourcepub fn at(
body: Option<usize>,
sample: &BodySample,
environment: &Environment,
) -> Result<Self, SimError>
pub fn at( body: Option<usize>, sample: &BodySample, environment: &Environment, ) -> Result<Self, SimError>
The landing at sample, for body, located on environment’s ellipsoid.
§Errors
SimError::Core if the position has no geodetic coordinates.
Trait Implementations§
impl Copy for Landing
Source§impl<'de> Deserialize<'de> for Landing
impl<'de> Deserialize<'de> for Landing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Landing
Auto Trait Implementations§
impl Freeze for Landing
impl RefUnwindSafe for Landing
impl Send for Landing
impl Sync for Landing
impl Unpin for Landing
impl UnsafeUnpin for Landing
impl UnwindSafe for Landing
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