Focus
Focus
generates a single focal point.
use autd3::prelude::*;
fn main() {
let x = 0.;
let y = 0.;
let z = 0.;
let _ =
Focus {
pos: Point3::new(x, y, z),
option: FocusOption {
intensity: EmitIntensity::MAX,
phase_offset: Phase::ZERO,
},
};
}
#include<autd3.hpp>
int main() {
using namespace autd3;
const auto x = 0.0;
const auto y = 0.0;
const auto z = 0.0;
Focus(Point3(x, y, z),
FocusOption{
.intensity = std::numeric_limits<EmitIntensity>::max(),
.phase_offset = Phase::zero(),
});
return 0; }
using AUTD3Sharp;
using AUTD3Sharp.Utils;
using AUTD3Sharp.Gain;
var x = 0.0f;
var y = 0.0f;
var z = 0.0f;
new Focus(
pos: new Point3(x, y, z),
option: new FocusOption
{
Intensity = EmitIntensity.Max,
PhaseOffset = Phase.Zero
}
);
from pyautd3 import EmitIntensity, Focus, FocusOption, Phase
x = 1.0
y = 0.0
z = 0.0
Focus(
pos=[x, y, z],
option=FocusOption(
intensity=EmitIntensity.MAX,
phase_offset=Phase.ZERO,
),
)
Optionally, you can specify the output intensity and phase offset. The default values are as above.