Focus
Focus
generates a single focal point.
use autd3::prelude::*;
#[allow(unused_variables)]
fn main() {
let x = 0.;
let y = 0.;
let z = 0.;
let g = Focus::new(Point3::new(x, y, z));
}
#include<autd3.hpp>
int main() {
const auto x = 0.0;
const auto y = 0.0;
const auto z = 0.0;
const auto g = autd3::Focus(autd3::Point3(x, y, z));
return 0; }
using AUTD3Sharp.Utils;
using AUTD3Sharp.Gain;
var x = 0.0f;
var y = 0.0f;
var z = 0.0f;
var g = new Focus(new Point3(x, y, z));
from pyautd3 import Focus
x = 1.0
y = 0.0
z = 0.0
g = Focus([x, y, z])
Set intensity
You can change emission intensity by with_intensity
method.
use autd3::prelude::*;
#[allow(unused_variables)]
fn main() {
let x = 0.;
let y = 0.;
let z = 0.;
let g = Focus::new(Point3::new(x, y, z))
.with_intensity(0xFF)
.with_phase_offset(0x00);
}
#include<autd3.hpp>
int main() {
const auto x = 0.0;
const auto y = 0.0;
const auto z = 0.0;
const auto g = autd3::Focus(autd3::Point3(x, y, z))
.with_intensity(0xFF)
.with_phase_offset(0x00);
return 0; }
using AUTD3Sharp;
using AUTD3Sharp.Utils;
using AUTD3Sharp.Gain;
var x = 0.0f;
var y = 0.0f;
var z = 0.0f;
var g = new Focus(new Point3(x, y, z))
.WithIntensity(0xFF)
.WithPhaseOffset(0x00);
from pyautd3 import Focus
x = 0.0
y = 0.0
z = 0.0
g = Focus([x, y, z])\
.with_intensity(0xFF)\
.with_phase_offset(0x00)