Struct hid_gamepad_sys::RotationSpeed
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§
§impl RotationSpeed
impl RotationSpeed
Trait Implementations§
§impl Clone for RotationSpeed
impl Clone for RotationSpeed
§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 more§impl Debug for RotationSpeed
impl Debug for RotationSpeed
§impl From<Vector3<f64>> for RotationSpeed
impl From<Vector3<f64>> for RotationSpeed
§fn from(raw: Vector3<f64>) -> RotationSpeed
fn from(raw: Vector3<f64>) -> RotationSpeed
Converts to this type from the input type.
§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