Trait Float

pub trait Float {
    // Required method
    fn float_value(&self) -> f32;
}
Expand description

Defines a float representation for arbitrary types

The actual float values are pretty arbitrary - as interpolation from one float to another will look the same, however in the case of asymmetric animations the ‘direction’ of the animation is determined using these float representations. In general, this defines ‘keyframes’ & associates animated values on a continuous axis so that transitions & interruptions can be represented.

Required Methods§

fn float_value(&self) -> f32

Implementations on Foreign Types§

§

impl FloatRepresentable for bool

§

fn float_value(&self) -> f32

§

impl FloatRepresentable for f32

§

fn float_value(&self) -> f32

Implementors§