[][src]Struct rg3d_core::math::SmoothAngle

pub struct SmoothAngle {
    pub angle: f32,
    pub target: f32,
    pub speed: f32,
}

Fields

angle: f32

Current angle in radians.

target: f32

Target angle in radians.

speed: f32

Turn speed in radians per second (rad/s)

Implementations

impl SmoothAngle[src]

pub fn set_target(&mut self, angle: f32) -> &mut Self[src]

pub fn update(&mut self, dt: f32) -> &mut Self[src]

pub fn set_speed(&mut self, speed: f32) -> &mut Self[src]

pub fn set_angle(&mut self, angle: f32) -> &mut Self[src]

pub fn angle(&self) -> f32[src]

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

pub fn distance(&self) -> f32[src]

Trait Implementations

impl Default for SmoothAngle[src]

impl Visit for SmoothAngle[src]

Auto Trait Implementations

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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Visit for T where
    T: FieldData + 'static, 
[src]