autd3-core 38.1.0

AUTD3 core traits and types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod sphere;
mod t4010a1;

use crate::common::Angle;

pub use sphere::Sphere;
pub use t4010a1::T4010A1;

/// A trait representing the directivity of ultrasound transducer.
pub trait Directivity {
    /// Calculates the directivity based on the given angle.
    ///
    /// # Arguments
    ///
    /// * `theta` - The angle between the axial direction and the target direction.
    #[must_use]
    fn directivity(theta: Angle) -> f32;
}