[−][src]Struct clay_viewer::Motion
Fields
updated: bool
key_mask: usize
pos: Vector3<f64>
phi: f64
theta: f64
speed: f64
sens: f64
fov: f64
fov_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]
fn handle_keys(&mut self, _state: &WindowState, event: &Event) -> Result<()>
[src]
fn handle_mouse(
&mut self,
state: &WindowState,
ms: &MouseState,
rms: &RelativeMouseState
) -> Result<()>
[src]
&mut self,
state: &WindowState,
ms: &MouseState,
rms: &RelativeMouseState
) -> Result<()>
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]
U: From<T>,
impl<T> From<T> for 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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> TypeHash for T where
T: 'static,
[src]
T: 'static,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,