Trait euc::interpolate::Interpolate[][src]

pub trait Interpolate {
    fn lerp2(a: Self, b: Self, x: f32, y: f32) -> Self;
fn lerp3(a: Self, b: Self, c: Self, x: f32, y: f32, z: f32) -> Self; }

A trait used to enable types to be interpolated throughout the rasterization process

Required methods

fn lerp2(a: Self, b: Self, x: f32, y: f32) -> Self[src]

Linearly scale two items of this type and sum them

fn lerp3(a: Self, b: Self, c: Self, x: f32, y: f32, z: f32) -> Self[src]

Linearly scale three items of this type and sum them

Loading content...

Implementations on Foreign Types

impl Interpolate for f32[src]

impl Interpolate for Vec2<f32>[src]

impl Interpolate for Vec3<f32>[src]

impl Interpolate for Vec4<f32>[src]

impl Interpolate for Rgb<f32>[src]

impl Interpolate for Rgba<f32>[src]

impl<T: Interpolate, U: Interpolate> Interpolate for (T, U)[src]

impl<T: Interpolate, U: Interpolate, V: Interpolate> Interpolate for (T, U, V)[src]

impl<T: Interpolate, U: Interpolate, V: Interpolate, W: Interpolate> Interpolate for (T, U, V, W)[src]

impl Interpolate for ()[src]

Loading content...

Implementors

Loading content...