pub trait F32Extensions {
    // Required methods
    fn signum_zero(self) -> Self;
    fn spread(self, amount: f32) -> Self;
    fn spread_in(self, amount: f32) -> Self;
    fn spread_zero(self, amount: f32) -> Self;
    fn clamp_scale(self, from: Range<f32>, to: Range<f32>) -> f32;
}

Required Methods§

source

fn signum_zero(self) -> Self

source

fn spread(self, amount: f32) -> Self

source

fn spread_in(self, amount: f32) -> Self

source

fn spread_zero(self, amount: f32) -> Self

source

fn clamp_scale(self, from: Range<f32>, to: Range<f32>) -> f32

Implementations on Foreign Types§

source§

impl F32Extensions for f32

source§

fn spread(self, amount: f32) -> f32

0.2 => 0.9..1.1

source§

fn spread_in(self, amount: f32) -> f32

0.2 => 0.8..1.0

source§

fn signum_zero(self) -> f32

source§

fn spread_zero(self, amount: f32) -> f32

source§

fn clamp_scale(self, from: Range<f32>, to: Range<f32>) -> f32

Implementors§