pub struct Monitor {
pub x_m: f64,
pub z_m: f64,
pub speed_mps: f64,
pub direction_from_deg: f64,
}Expand description
One surface wind observation, in the terrain grid’s frame (metres).
Fields§
§x_m: f64Easting (frame x), metres.
z_m: f64Northing (frame z), metres.
speed_mps: f64Wind speed, metres per second.
direction_from_deg: f64Meteorological FROM-direction in the frame convention: 0° = from
+x (a headwind), 90° = from the right (see Wind::from_speed_direction).
Implementations§
Source§impl Monitor
impl Monitor
Sourcepub fn at(x_m: f64, z_m: f64, speed_mps: f64, direction_from_deg: f64) -> Self
pub fn at(x_m: f64, z_m: f64, speed_mps: f64, direction_from_deg: f64) -> Self
An observation already in the grid’s metre frame.
Sourcepub fn from_geo(
lat_deg: f64,
lon_deg: f64,
speed_mps: f64,
dir_compass_from_deg: f64,
ref_lat_deg: f64,
ref_lon_deg: f64,
north_azimuth_deg: f64,
) -> Self
pub fn from_geo( lat_deg: f64, lon_deg: f64, speed_mps: f64, dir_compass_from_deg: f64, ref_lat_deg: f64, ref_lon_deg: f64, north_azimuth_deg: f64, ) -> Self
A geographic reading, projected into local metres and rotated from
compass degrees into the frame. ref_lat/ref_lon is the point
that maps to the frame’s origin, and north_azimuth_deg is the
compass direction of the frame’s +x axis.
Trait Implementations§
impl Copy for Monitor
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnsafeUnpin for Monitor
impl UnwindSafe for Monitor
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