pub trait Atmosphere:
Debug
+ Send
+ Sync {
// Required method
fn air(&self, height_msl_m: f64) -> Result<AirSample, AtmosError>;
}Expand description
An atmosphere model: the air as a function of height.
Height datum. Every atmosphere is queried with the geometric height above mean sea
level, in meters. The flight engine’s heights are ellipsoidal (docs/physics/frames.md), so
it subtracts the geoid undulation N at the site first: H = h − N.
Required Methods§
Sourcefn air(&self, height_msl_m: f64) -> Result<AirSample, AtmosError>
fn air(&self, height_msl_m: f64) -> Result<AirSample, AtmosError>
The air at geometric height height_msl_m above mean sea level.
§Errors
AtmosError::Domain if the height is not finite, or is outside the heights the model
can represent at all (as opposed to heights it extrapolates to, which it flags).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".