Skip to main content

Interpolate

Trait Interpolate 

Source
pub trait Interpolate: Copy {
    // Required method
    fn interpolate(prv: Self, cur: Self, amount: f32) -> Self;
}
Expand description

Classic lerp/slerp helper for various simple math primitives

Required Methods§

Source

fn interpolate(prv: Self, cur: Self, amount: f32) -> 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 Interpolate for f32

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Source§

impl Interpolate for f64

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Source§

impl Interpolate for Quat

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Source§

impl Interpolate for Vec2

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Source§

impl Interpolate for Vec3

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Source§

impl Interpolate for DQuat

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Source§

impl Interpolate for DVec2

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Source§

impl Interpolate for DVec3

Source§

fn interpolate(prv: Self, cur: Self, amount: f32) -> Self

Implementors§