Skip to main content

F32Ext

Trait F32Ext 

Source
pub trait F32Ext {
    // Required method
    fn lerp(self, other: f32, t: f32) -> f32;
}
Expand description

An extension trait for f32.

Required Methods§

Source

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

Linearly interpolate between self and other with parameter t.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl F32Ext for f32

Source§

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

Implementors§