Struct ModalResonanceRecord
pub struct ModalResonanceRecord {
pub frequency_hz: f32,
pub amplitude_pa: f32,
pub decay_rate_s1: f32,
pub phase_rad: f32,
pub mode_shape_index: u32,
pub material_ref: u32,
pub excitation_index: u32,
pub reserved: u32,
}Fields§
§frequency_hz: f32§amplitude_pa: f32§decay_rate_s1: f32§phase_rad: f32§mode_shape_index: u32§material_ref: u32§excitation_index: u32§reserved: u32Implementations§
§impl ModalResonanceRecord
impl ModalResonanceRecord
pub fn validate(&self) -> Result<(), SignalError>
pub fn to_le_bytes(&self) -> Result<[u8; 32], SignalError>
pub fn from_le_bytes(bytes: &[u8]) -> Result<ModalResonanceRecord, SignalError>
pub fn t60_seconds(&self) -> Result<(Option<f64>, QualityStatus), SignalError>
pub fn evaluate_at_time_f64( &self, time_seconds: f64, ) -> Result<f64, SignalError>
Trait Implementations§
§impl Clone for ModalResonanceRecord
impl Clone for ModalResonanceRecord
§fn clone(&self) -> ModalResonanceRecord
fn clone(&self) -> ModalResonanceRecord
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 moreimpl Copy for ModalResonanceRecord
§impl Debug for ModalResonanceRecord
impl Debug for ModalResonanceRecord
§impl PartialEq for ModalResonanceRecord
impl PartialEq for ModalResonanceRecord
impl StructuralPartialEq for ModalResonanceRecord
Auto Trait Implementations§
impl Freeze for ModalResonanceRecord
impl RefUnwindSafe for ModalResonanceRecord
impl Send for ModalResonanceRecord
impl Sync for ModalResonanceRecord
impl Unpin for ModalResonanceRecord
impl UnsafeUnpin for ModalResonanceRecord
impl UnwindSafe for ModalResonanceRecord
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