Skip to main content

Lerp

Trait Lerp 

Source
pub trait Lerp {
    // Required method
    fn lerp(start: &Self, end: &Self, t: f64) -> Self;
}

Required Methods§

Source

fn lerp(start: &Self, end: &Self, t: f64) -> 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 Lerp for f32

Source§

fn lerp(start: &f32, end: &f32, t: f64) -> f32

Source§

impl Lerp for f64

Source§

fn lerp(start: &f64, end: &f64, t: f64) -> f64

Source§

impl Lerp for i8

Source§

fn lerp(start: &i8, end: &i8, t: f64) -> i8

Source§

impl Lerp for i16

Source§

fn lerp(start: &i16, end: &i16, t: f64) -> i16

Source§

impl Lerp for i32

Source§

fn lerp(start: &i32, end: &i32, t: f64) -> i32

Source§

impl Lerp for i64

Source§

fn lerp(start: &i64, end: &i64, t: f64) -> i64

Source§

impl Lerp for isize

Source§

fn lerp(start: &isize, end: &isize, t: f64) -> isize

Source§

impl Lerp for u8

Source§

fn lerp(start: &u8, end: &u8, t: f64) -> u8

Source§

impl Lerp for u16

Source§

fn lerp(start: &u16, end: &u16, t: f64) -> u16

Source§

impl Lerp for u32

Source§

fn lerp(start: &u32, end: &u32, t: f64) -> u32

Source§

impl Lerp for u64

Source§

fn lerp(start: &u64, end: &u64, t: f64) -> u64

Source§

impl Lerp for usize

Source§

fn lerp(start: &usize, end: &usize, t: f64) -> usize

Source§

impl Lerp for String

Source§

fn lerp(start: &String, end: &String, t: f64) -> String

Implementors§