pub struct Gyro {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
Current device orientation reported by a gyroscope/orientation sensor.
On web targets, this is sourced from DeviceOrientationEvent and mapped as:
x = beta, y = gamma, and z = alpha, all in degrees.
Fields§
§x: f64Front-to-back tilt, in degrees.
y: f64Left-to-right tilt, in degrees.
z: f64Compass/z-axis rotation, in degrees.
Trait Implementations§
impl Copy for Gyro
Source§impl Interpolatable for Gyro
impl Interpolatable for Gyro
Source§fn interpolate(&self, other: &Self, t: f64) -> Self
fn interpolate(&self, other: &Self, t: f64) -> Self
impl StructuralPartialEq for Gyro
Source§impl ToPaxValue for Gyro
impl ToPaxValue for Gyro
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Auto Trait Implementations§
impl Freeze for Gyro
impl RefUnwindSafe for Gyro
impl Send for Gyro
impl Sync for Gyro
impl Unpin for Gyro
impl UnsafeUnpin for Gyro
impl UnwindSafe for Gyro
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> PropertyValue for T
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.