[][src]Trait bevy_easings::Lerp

pub trait Lerp {
    type Scalar;
    fn lerp(&self, other: &Self, scalar: &Self::Scalar) -> Self;
}

Describes a type that can linearly interpolate between two points.

Associated Types

type Scalar

The scaling type for linear interpolation.

Loading content...

Required methods

fn lerp(&self, other: &Self, scalar: &Self::Scalar) -> Self

Given self and another point other, return a point on a line running between the two that is scalar fraction of the distance between the two points.

Loading content...

Implementations on Foreign Types

impl<T> Lerp for [T; 3] where
    T: Lerp
[src]

type Scalar = <T as Lerp>::Scalar

impl Lerp for u8[src]

type Scalar = f32

impl Lerp for i32[src]

type Scalar = f32

impl Lerp for u16[src]

type Scalar = f32

impl<T> Lerp for [T; 2] where
    T: Lerp
[src]

type Scalar = <T as Lerp>::Scalar

impl<T> Lerp for [T; 4] where
    T: Lerp
[src]

type Scalar = <T as Lerp>::Scalar

impl Lerp for f32[src]

type Scalar = f32

impl Lerp for u64[src]

type Scalar = f64

impl Lerp for i16[src]

type Scalar = f32

impl Lerp for i64[src]

type Scalar = f64

impl<T> Lerp for [T; 5] where
    T: Lerp
[src]

type Scalar = <T as Lerp>::Scalar

impl<T> Lerp for [T; 1] where
    T: Lerp
[src]

type Scalar = <T as Lerp>::Scalar

impl Lerp for f64[src]

type Scalar = f64

impl Lerp for u32[src]

type Scalar = f32

impl Lerp for i8[src]

type Scalar = f32

Loading content...

Implementors

impl Lerp for EaseValue<Color>[src]

type Scalar = f32

impl Lerp for EaseValue<ColorMaterial>[src]

type Scalar = f32

impl Lerp for EaseValue<Rect<Val>>[src]

type Scalar = f32

impl Lerp for EaseValue<Size<Val>>[src]

type Scalar = f32

impl Lerp for EaseValue<Sprite>[src]

type Scalar = f32

impl Lerp for EaseValue<Style>[src]

type Scalar = f32

impl Lerp for EaseValue<Transform>[src]

type Scalar = f32

impl Lerp for EaseValue<Val>[src]

type Scalar = f32

Loading content...