[][src]Struct rust_webvr_api::vr_pose::VRPose

pub struct VRPose {
    pub position: Option<[f32; 3]>,
    pub linear_velocity: Option<[f32; 3]>,
    pub linear_acceleration: Option<[f32; 3]>,
    pub orientation: Option<[f32; 4]>,
    pub angular_velocity: Option<[f32; 3]>,
    pub angular_acceleration: Option<[f32; 3]>,
}

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.