Skip to content
This is the development version of the documentation. It may change before the next release. See 0.9.x for the latest release.

plane

src

plane generates a plane wave propagating in the specified direction.

plane(&geometry, direction, wavelength, &mut phases);
Parameter Type Description
geometry &Geometry Device layout
direction UnitVector3<f32> Propagation direction of the plane wave (unit vector)
wavelength Length Wavelength
dst &mut [Vec<Phase>] Output buffer
use autd3_rs::geometry::{Autd3, Geometry, Vector3};
use autd3_rs::units::{m, s};
use autd3_rs_pattern::{plane, wavelength};
let geometry = Geometry::new(vec![Autd3::default()]);
let mut phases = geometry.phase_buffer();
plane(
&geometry,
Vector3::z_axis(),
wavelength(340.0 * m / s),
&mut phases,
);