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§
Sourcefn smooth(self) -> f32
fn smooth(self) -> f32
quick easing (smooth-step): has to be within 0..=1, consider using .clamp_unit() if not sure
Sourcefn clamp_unit(self) -> f32
fn clamp_unit(self) -> f32
same as clamp(0.,1.)