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: f64Wind-FROM direction in the frame convention: 0° = from +x (a headwind), 90° = from +z, the right.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.