[−][src]Struct rust_webvr_api::vr_pose::VRPose
The VRPose struct represents a sensor’s state at a given timestamp.
Fields
position: Option<[f32; 3]>
Position of the VRDisplay as a 3D vector. May be None if the sensor is incapable of providing positional data.
linear_velocity: Option<[f32; 3]>
Linear velocity of the sensor given in meters per second. May be None if the sensor is incapable of providing linear velocity data.
linear_acceleration: Option<[f32; 3]>
Linear acceleration of the sensor given in meters per second squared. May be None if the sensor is incapable of providing linear acceleration data.
orientation: Option<[f32; 4]>
Orientation of the sensor as a quaternion. May be None if the sensor is incapable of providing orientation.
angular_velocity: Option<[f32; 3]>
Angular velocity of the sensor given in radians per second. May be None if the sensor is incapable of providing angular velocity data.
angular_acceleration: Option<[f32; 3]>
Linear acceleration of the sensor given in radians per second squared. May be None if the sensor is incapable of providing angular acceleration data.
Trait Implementations
impl Copy for VRPose
[src]
impl Default for VRPose
[src]
impl Clone for VRPose
[src]
fn clone(&self) -> VRPose
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for VRPose
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,