pub struct PaneInertialThrow {
pub velocity_x: f64,
pub velocity_y: f64,
pub damping: f64,
pub horizon_ms: u16,
}Expand description
Inertial throw profile used after drag release.
Fields§
§velocity_x: f64§velocity_y: f64§damping: f64Exponential velocity damping per second. Higher means quicker settle.
horizon_ms: u16Projection horizon used for target preview/landing selection.
Implementations§
Source§impl PaneInertialThrow
impl PaneInertialThrow
pub fn from_motion(motion: PaneMotionVector) -> Self
pub fn projected_pointer( self, start: PanePointerPosition, ) -> PanePointerPosition
Trait Implementations§
Source§impl Clone for PaneInertialThrow
impl Clone for PaneInertialThrow
Source§fn clone(&self) -> PaneInertialThrow
fn clone(&self) -> PaneInertialThrow
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 PaneInertialThrow
impl Debug for PaneInertialThrow
Source§impl<'de> Deserialize<'de> for PaneInertialThrow
impl<'de> Deserialize<'de> for PaneInertialThrow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaneInertialThrow
impl PartialEq for PaneInertialThrow
Source§impl Serialize for PaneInertialThrow
impl Serialize for PaneInertialThrow
impl Copy for PaneInertialThrow
impl StructuralPartialEq for PaneInertialThrow
Auto Trait Implementations§
impl Freeze for PaneInertialThrow
impl RefUnwindSafe for PaneInertialThrow
impl Send for PaneInertialThrow
impl Sync for PaneInertialThrow
impl Unpin for PaneInertialThrow
impl UnsafeUnpin for PaneInertialThrow
impl UnwindSafe for PaneInertialThrow
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