#[non_exhaustive]pub struct NavigationActions {
pub orbit: Vec2,
pub pan: Vec2,
pub zoom: f32,
pub twist: f32,
}Expand description
Resolved navigation actions for one frame.
Produced by ViewportInput after processing all events for a frame.
Non-zero fields indicate active input in that direction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.orbit: Vec2Orbit drag delta in viewport pixels (x = yaw, y = pitch). Zero if no orbit input. A camera controller turns it into an angle with its own sensitivity.
pan: Vec2Pan delta in viewport-local pixels (x = right, y = down). Zero if no pan input.
zoom: f32Zoom factor delta. Positive = zoom in. Zero if no zoom input.
twist: f32Two-finger trackpad rotation gesture delta, in radians. Positive = counter-clockwise. Zero if no gesture this frame.
Trait Implementations§
Source§fn clone(&self) -> NavigationActions
fn clone(&self) -> NavigationActions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> NavigationActions
fn default() -> NavigationActions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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