#[repr(C)]pub struct XPLMWeatherInfo_t {Show 18 fields
pub structSize: c_int,
pub temperature_alt: f32,
pub dewpoint_alt: f32,
pub pressure_alt: f32,
pub precip_rate_alt: f32,
pub wind_dir_alt: f32,
pub wind_spd_alt: f32,
pub turbulence_alt: f32,
pub wave_height: f32,
pub wave_length: f32,
pub wave_dir: c_int,
pub wave_speed: f32,
pub visibility: f32,
pub precip_rate: f32,
pub thermal_climb: f32,
pub pressure_sl: f32,
pub wind_layers: [XPLMWeatherInfoWinds_t; 13],
pub cloud_layers: [XPLMWeatherInfoClouds_t; 3],
}Expand description
XPLMWeatherInfo_t
Basic weather conditions at a specific point.
Fields§
§structSize: c_intThe size of the struct.
temperature_alt: f32Temperature at the given altitude in Celsius
dewpoint_alt: f32Dewpoint at the given altitude in Celsius
pressure_alt: f32Pressure at the given altitude in Pascals
precip_rate_alt: f32Precipitation rate at the given altitude
wind_dir_alt: f32Wind direction at the given altitude
wind_spd_alt: f32Wind speed at the given altitude, meters/sec
turbulence_alt: f32Turbulence ratio at the given altitude
wave_height: f32Height of water waves in meters
wave_length: f32Length of water waves in meters
wave_dir: c_intDirection from which water waves are coming
wave_speed: f32Speed of wave advance in meters/sec
visibility: f32Base visibility at 0 altitude, meters
precip_rate: f32Base precipitation ratio at 0 altitude
thermal_climb: f32Climb rate due to thermals, meters/sec
pressure_sl: f32Pressure at 0 altitude in Pascals
wind_layers: [XPLMWeatherInfoWinds_t; 13]Defined wind layers. Not all layers are always defined.
cloud_layers: [XPLMWeatherInfoClouds_t; 3]Defined cloud layers. Not all layers are always defined.
Trait Implementations§
Source§impl Clone for XPLMWeatherInfo_t
impl Clone for XPLMWeatherInfo_t
Source§fn clone(&self) -> XPLMWeatherInfo_t
fn clone(&self) -> XPLMWeatherInfo_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more