Struct hid_gamepad_types::RotationSpeed
source · pub struct RotationSpeed {
pub x: f64,
pub y: f64,
pub z: f64,
}
Expand description
Uses the SDL convention.
Units are deg/s
Fields§
§x: f64
-x … +x is left … right
y: f64
-y … +y is down … up
z: f64
-z … +z is forward … backward
Implementations§
Trait Implementations§
source§impl Clone for RotationSpeed
impl Clone for RotationSpeed
source§fn clone(&self) -> RotationSpeed
fn clone(&self) -> RotationSpeed
Returns a copy 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 RotationSpeed
impl Debug for RotationSpeed
source§impl From<Vector3<f64>> for RotationSpeed
impl From<Vector3<f64>> for RotationSpeed
source§impl Mul<Duration> for RotationSpeed
impl Mul<Duration> for RotationSpeed
impl Copy for RotationSpeed
Auto Trait Implementations§
impl Freeze for RotationSpeed
impl RefUnwindSafe for RotationSpeed
impl Send for RotationSpeed
impl Sync for RotationSpeed
impl Unpin for RotationSpeed
impl UnwindSafe for RotationSpeed
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