[−][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 Clone for VRPose
[src]
impl Copy for VRPose
[src]
impl Debug for VRPose
[src]
impl Default for VRPose
[src]
Auto Trait Implementations
impl RefUnwindSafe for VRPose
impl Send for VRPose
impl Sync for VRPose
impl Unpin for VRPose
impl UnwindSafe for VRPose
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,