pub struct Wind {
pub speed_kn: f64,
pub angle_deg: f64,
}Expand description
Wind speed and its angle off the bow, signed positive to starboard.
Used for both true and apparent wind – they differ in meaning, not in shape, and the functions returning them say which is which.
Fields§
§speed_kn: f64Wind speed in knots.
angle_deg: f64Angle the wind blows from, measured off the bow, -180.0..=180.0,
positive to starboard.
Trait Implementations§
impl Copy for Wind
impl StructuralPartialEq for Wind
Auto Trait Implementations§
impl Freeze for Wind
impl RefUnwindSafe for Wind
impl Send for Wind
impl Sync for Wind
impl Unpin for Wind
impl UnsafeUnpin for Wind
impl UnwindSafe for Wind
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