pub trait GainCalculator: Send + Sync {
// Required method
fn calc(&self, tr: &Transducer) -> Drive;
}Available on crate feature
gain only.Expand description
A trait to calculate the phase and intensity for Gain.
Required Methods§
Sourcefn calc(&self, tr: &Transducer) -> Drive
fn calc(&self, tr: &Transducer) -> Drive
Calculates the phase and intensity for the transducer.
Trait Implementations§
Source§impl GainCalculator for Box<dyn GainCalculator>
impl GainCalculator for Box<dyn GainCalculator>
Source§fn calc(&self, tr: &Transducer) -> Drive
fn calc(&self, tr: &Transducer) -> Drive
Calculates the phase and intensity for the transducer.