pub struct ArDeviceState {
pub camera_pose: (f64, f64, f64, f64, f64, f64),
pub passthrough_enabled: bool,
pub tracking_confidence: f64,
pub anchors: Vec<PhysicalAnchor>,
}Expand description
Represents the state of the AR device (camera tracking, passthrough mode)
Fields§
§camera_pose: (f64, f64, f64, f64, f64, f64)§passthrough_enabled: bool§tracking_confidence: f64§anchors: Vec<PhysicalAnchor>Implementations§
Source§impl ArDeviceState
impl ArDeviceState
Sourcepub fn update_pose(
&mut self,
pose: (f64, f64, f64, f64, f64, f64),
confidence: f64,
)
pub fn update_pose( &mut self, pose: (f64, f64, f64, f64, f64, f64), confidence: f64, )
Updates the 6-DoF pose with confidence.
Sourcepub fn add_anchor(&mut self, anchor: PhysicalAnchor)
pub fn add_anchor(&mut self, anchor: PhysicalAnchor)
Registers a physical anchor.
Auto Trait Implementations§
impl Freeze for ArDeviceState
impl RefUnwindSafe for ArDeviceState
impl Send for ArDeviceState
impl Sync for ArDeviceState
impl Unpin for ArDeviceState
impl UnsafeUnpin for ArDeviceState
impl UnwindSafe for ArDeviceState
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more