[−][src]Struct rg3d_core::math::SmoothAngle
Fields
angle: f32Current angle in radians.
target: f32Target angle in radians.
speed: f32Turn 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]
fn visit(&mut self, name: &str, visitor: &mut Visitor) -> VisitResult[src]
Auto Trait Implementations
impl RefUnwindSafe for SmoothAngle
impl Send for SmoothAngle
impl Sync for SmoothAngle
impl Unpin for SmoothAngle
impl UnwindSafe for SmoothAngle
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, 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Visit for T where
T: FieldData + 'static, [src]
T: FieldData + 'static,