This is the development version of the documentation. It may change before the next release. See 0.9.x for the latest release.
plane
srcplane generates a plane wave propagating in the specified direction.
plane(&geometry, direction, wavelength, &mut phases);plane(geometry, direction, wavelength, phases)Pattern.Plane(geometry, direction, wavelength, 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 |
Example
Section titled “Example”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,);import numpy as npfrom autd3.geometry import Autd3, Geometryfrom autd3.units import m, sfrom autd3_pattern import plane, wavelength
geometry = Geometry([Autd3([0.0, 0.0, 0.0], [1.0, 0.0, 0.0, 0.0])])
phases = geometry.phase_buffer()
plane( geometry, np.array([0.0, 0.0, 1.0]), wavelength(340 * m / s), phases,)using System.Numerics;using AUTD3;using static AUTD3.Units;
var geometry = new Geometry(new[] { new Autd3(Vector3.Zero) });
var phases = geometry.PhaseBuffer();
Pattern.Plane( geometry, Vector3.UnitZ, Pattern.Wavelength(340.0f * m / s), phases);