strange_attractor_renderer::primitives

Trait FloatExt

source
pub trait FloatExt {
    // Required methods
    fn square(self) -> Self;
    fn lerp(self, other: Self, t: Self) -> Self;
}
Expand description

Trait to use the following functions on the float primitives.

Here for convenience.

Required Methods§

source

fn square(self) -> Self

source

fn lerp(self, other: Self, t: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl FloatExt for f32

source§

fn square(self) -> Self

source§

fn lerp(self, other: Self, t: Self) -> Self

source§

impl FloatExt for f64

source§

fn square(self) -> Self

source§

fn lerp(self, other: Self, t: Self) -> Self

Implementors§