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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DispersedWind
impl Debug for DispersedWind
Source§impl Wind for DispersedWind
impl Wind for DispersedWind
Source§fn direction_turns(&self) -> Vec<DirectionTurn>
fn direction_turns(&self) -> Vec<DirectionTurn>
The base model’s turns, turned as its wind is: each level’s direction turned clockwise by
the turn, so a flight warns of the directions it flies (Wind::direction_turns). Each
level’s speed is the base table’s, not scaled: whether a level is near calm, so that its
reported direction means little, is a matter of what was measured there, and a dispersed
speed doesn’t make the measured direction any better. The warning quotes the speed the
table reports.
Source§fn wind(&self, height_msl_m: f64) -> Result<WindSample, AtmosError>
fn wind(&self, height_msl_m: f64) -> Result<WindSample, AtmosError>
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
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>
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>
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