[][src]Struct clay_viewer::Motion

pub struct Motion {
    pub updated: bool,
    pub key_mask: usize,
    pub pos: Vector3<f64>,
    pub phi: f64,
    pub theta: f64,
    pub speed: f64,
    pub sens: f64,
    pub fov: f64,
    pub fov_sens: f64,
}

Fields

updated: boolkey_mask: usizepos: Vector3<f64>phi: f64theta: f64speed: f64sens: f64fov: f64fov_sens: f64

Methods

impl Motion[src]

pub fn new(pos: Vector3<f64>, ori: Rotation3<f64>) -> Self[src]

pub fn set_speed(&mut self, speed: f64)[src]

pub fn set_sensitivity(&mut self, sens: f64)[src]

pub fn pos(&self) -> Vector3<f64>[src]

pub fn ori(&self) -> Rotation3<f64>[src]

pub fn was_updated(&self) -> bool[src]

pub fn step(&mut self, dt: Duration)[src]

Trait Implementations

impl EventHandler for Motion[src]

Auto Trait Implementations

impl Send for Motion

impl Unpin for Motion

impl Sync for Motion

impl UnwindSafe for Motion

impl RefUnwindSafe for Motion

Blanket Implementations

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

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> TypeHash for T where
    T: 'static, 
[src]

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,