Trait DekiExtF32

Source
pub trait DekiExtF32 {
    // Required methods
    fn smooth(self) -> f32;
    fn clamp_unit(self) -> f32;
}
Expand description

This is an extension trait for the following impl:

#[extension(pub trait DekiExtF32)]
impl for f32

Required Methods§

Source

fn smooth(self) -> f32

quick easing (smooth-step): has to be within 0..=1, consider using .clamp_unit() if not sure

Source

fn clamp_unit(self) -> f32

same as clamp(0.,1.)

Implementations on Foreign Types§

Source§

impl DekiExtF32 for f32

Source§

fn smooth(self) -> f32

quick easing (smooth-step): has to be within 0..=1, consider using .clamp_unit() if not sure

Source§

fn clamp_unit(self) -> f32

same as clamp(0.,1.)

Implementors§