Skip to main content

Nlerp

Trait Nlerp 

Source
pub trait Nlerp<T: Float> {
    // Required method
    fn nlerp(e0: Self, e1: Self, t: T) -> Self;
}
Expand description

trait for normalized interpolation, which is applicable with vec and quat

Required Methods§

Source

fn nlerp(e0: Self, e1: Self, t: T) -> 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.

Implementors§

Source§

impl<T> Nlerp<T> for Quat<T>
where T: Float + FloatOps<T> + NumberOps<T>,

returns a quaternion linearly interpolated between e0 and e1 by percentage t normalising the return value

Source§

impl<T> Nlerp<T> for Vec2<T>
where T: Float + FloatOps<T> + NumberOps<T>,

Source§

impl<T> Nlerp<T> for Vec3<T>
where T: Float + FloatOps<T> + NumberOps<T>,

Source§

impl<T> Nlerp<T> for Vec4<T>
where T: Float + FloatOps<T> + NumberOps<T>,