pub struct TrackballStyle {
pub orbit_sensitivity: f64,
pub zoom_sensitivity: f64,
/* private fields */
}Expand description
Trackball (arcball) camera interaction style.
Sensitivity values control the mapping from pixel deltas to angles/units:
orbit_sensitivity— radians per pixel (default 0.005)pan_sensitivity— world units per pixel (default 0.001 × distance)zoom_sensitivity— factor per scroll tick (default 0.1)
Fields§
§orbit_sensitivity: f64Radians per pixel for orbit.
zoom_sensitivity: f64Scroll zoom: factor per scroll unit (subtracted from 1.0).
Implementations§
Trait Implementations§
Source§impl Debug for TrackballStyle
impl Debug for TrackballStyle
Source§impl Default for TrackballStyle
impl Default for TrackballStyle
Source§impl InteractionStyle for TrackballStyle
impl InteractionStyle for TrackballStyle
Source§fn on_mouse_event(
&mut self,
event: &MouseEvent,
_ctx: &InteractionContext,
camera: &mut Camera,
) -> InteractionResult
fn on_mouse_event( &mut self, event: &MouseEvent, _ctx: &InteractionContext, camera: &mut Camera, ) -> InteractionResult
Handle a mouse event and potentially mutate the camera. Read more
Source§fn on_key_event(
&mut self,
_event: &KeyEvent,
_ctx: &InteractionContext,
_camera: &mut Camera,
) -> InteractionResult
fn on_key_event( &mut self, _event: &KeyEvent, _ctx: &InteractionContext, _camera: &mut Camera, ) -> InteractionResult
Handle a key event.
Auto Trait Implementations§
impl Freeze for TrackballStyle
impl RefUnwindSafe for TrackballStyle
impl Send for TrackballStyle
impl Sync for TrackballStyle
impl Unpin for TrackballStyle
impl UnsafeUnpin for TrackballStyle
impl UnwindSafe for TrackballStyle
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