Trait Lerp

Source
pub trait Lerp<F: Real> {
    // Required method
    fn lerp(&self, b: &Self, factor: F) -> Self;
}
Expand description

This type can perform linear interpolate from a to b with factor

Required Methods§

Source

fn lerp(&self, b: &Self, factor: F) -> Self

Return the result of interpolating between self and b with factor factor

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 Lerp<f32> for f32

Source§

fn lerp(&self, b: &Self, factor: f32) -> Self

Source§

impl Lerp<f64> for f64

Source§

fn lerp(&self, b: &Self, factor: f64) -> Self

Implementors§

Source§

impl<T: Real> Lerp<T> for TVec2<T>

Source§

impl<T: Real> Lerp<T> for TVec3<T>

Source§

impl<T: Real> Lerp<T> for TVec4<T>