[−][src]Trait bevy_easings::Lerp
Describes a type that can linearly interpolate between two points.
Associated Types
type Scalar
The scaling type for linear interpolation.
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.
Implementations on Foreign Types
impl<T> Lerp for [T; 3] where
T: Lerp,
[src]
T: Lerp,
type Scalar = <T as Lerp>::Scalar
fn lerp(&self, other: &[T; 3], scalar: &<[T; 3] as Lerp>::Scalar) -> [T; 3]
[src]
impl Lerp for u8
[src]
impl Lerp for i32
[src]
impl Lerp for u16
[src]
impl<T> Lerp for [T; 2] where
T: Lerp,
[src]
T: Lerp,
type Scalar = <T as Lerp>::Scalar
fn lerp(&self, other: &[T; 2], scalar: &<[T; 2] as Lerp>::Scalar) -> [T; 2]
[src]
impl<T> Lerp for [T; 4] where
T: Lerp,
[src]
T: Lerp,
type Scalar = <T as Lerp>::Scalar
fn lerp(&self, other: &[T; 4], scalar: &<[T; 4] as Lerp>::Scalar) -> [T; 4]
[src]
impl Lerp for f32
[src]
impl Lerp for u64
[src]
impl Lerp for i16
[src]
impl Lerp for i64
[src]
impl<T> Lerp for [T; 5] where
T: Lerp,
[src]
T: Lerp,
type Scalar = <T as Lerp>::Scalar
fn lerp(&self, other: &[T; 5], scalar: &<[T; 5] as Lerp>::Scalar) -> [T; 5]
[src]
impl<T> Lerp for [T; 1] where
T: Lerp,
[src]
T: Lerp,