pub struct DispersedWind { /* private fields */ }Expand description
A wind model’s wind, scaled and turned: at every height the velocity is speed_scale times
the base model’s, its horizontal part turned turn_rad clockwise seen from above. Turning
the velocity turns the direction the wind blows from by the same angle, so a dispersed heading
stays about the forecast’s.
Implementations§
Source§impl DispersedWind
impl DispersedWind
Sourcepub fn new(
base: Arc<dyn Wind>,
speed_scale: f64,
turn_rad: f64,
) -> Result<Self, AnalysisError>
pub fn new( base: Arc<dyn Wind>, speed_scale: f64, turn_rad: f64, ) -> Result<Self, AnalysisError>
base scaled by speed_scale and turned turn_rad clockwise.
§Errors
AnalysisError::Domain for a scale that is negative or not finite, or a turn that isn’t
finite.
Trait Implementations§
Source§impl Clone for DispersedWind
impl Clone for DispersedWind
Source§fn clone(&self) -> DispersedWind
fn clone(&self) -> DispersedWind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispersedWind
impl Debug for DispersedWind
Source§impl Wind for DispersedWind
impl Wind for DispersedWind
Source§fn wind(&self, height_msl_m: f64) -> Result<WindSample, AtmosError>
fn wind(&self, height_msl_m: f64) -> Result<WindSample, AtmosError>
The wind at geometric height
height_msl_m above mean sea level. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DispersedWind
impl !UnwindSafe for DispersedWind
impl Freeze for DispersedWind
impl Send for DispersedWind
impl Sync for DispersedWind
impl Unpin for DispersedWind
impl UnsafeUnpin for DispersedWind
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more