pub enum CameraMotionState {
Stable,
Moving {
angular_velocity: Option<f32>,
displacement: Option<f32>,
},
Unknown,
}Expand description
Whether the camera is stable, moving, or in an unknown state.
Central to the view system’s decision-making. Stages receive this
through ViewSnapshot.
Variants§
Stable
Camera is not moving. Coordinates are stable across frames.
Moving
Camera is actively moving.
Fields
Unknown
Camera motion state is unknown.
Occurs when no telemetry is available, no estimator is configured, or the estimator’s confidence is below threshold. Treated as potentially moving for safety — never assumed stable.
Trait Implementations§
Source§impl Clone for CameraMotionState
impl Clone for CameraMotionState
Source§fn clone(&self) -> CameraMotionState
fn clone(&self) -> CameraMotionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CameraMotionState
impl Debug for CameraMotionState
Source§impl PartialEq for CameraMotionState
impl PartialEq for CameraMotionState
impl StructuralPartialEq for CameraMotionState
Auto Trait Implementations§
impl Freeze for CameraMotionState
impl RefUnwindSafe for CameraMotionState
impl Send for CameraMotionState
impl Sync for CameraMotionState
impl Unpin for CameraMotionState
impl UnsafeUnpin for CameraMotionState
impl UnwindSafe for CameraMotionState
Blanket Implementations§
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