pub struct WaveSpec { /* private fields */ }Implementations§
Source§impl WaveSpec
impl WaveSpec
pub fn new(speed_m_per_s: f64, frequency_hz: f64) -> Result<Self, WaveError>
pub const fn speed_m_per_s(self) -> f64
pub const fn frequency_hz(self) -> f64
pub fn wavelength_m(self) -> f64
pub fn period_s(self) -> f64
pub fn angular_frequency_rad_s(self) -> f64
pub fn wave_number_rad_m(self) -> f64
pub fn phase_radians( self, time_s: f64, position_m: f64, ) -> Result<f64, WaveError>
Trait Implementations§
impl Copy for WaveSpec
impl StructuralPartialEq for WaveSpec
Auto Trait Implementations§
impl Freeze for WaveSpec
impl RefUnwindSafe for WaveSpec
impl Send for WaveSpec
impl Sync for WaveSpec
impl Unpin for WaveSpec
impl UnsafeUnpin for WaveSpec
impl UnwindSafe for WaveSpec
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