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
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.Source§fn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Live properties read when snapshotting a compound value for PAXEL.
Adapters observe these as well as the containing property.
Source§fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Converts against owner-thread graph views, including nested generated
property fields. Requires an entered property graph for shared fields.
Ordinary
Self::to_pax_value reads published value snapshots.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.