Trait rhusics_transform::TranslationInterpolate
[−]
[src]
pub trait TranslationInterpolate<S> { fn translation_interpolate(&self, other: &Self, amount: S) -> Self; }
Trait used for interpolation of translation only in transforms
Required Methods
fn translation_interpolate(&self, other: &Self, amount: S) -> Self
Interpolate between self
and other
, using amount to calculate how much of other to use.
Parameters:
amount
: amount in the range 0. .. 1.other
: the other value to interpolate with
Returns
A new value approximately equal to self * (1. - amount) + other * amount
.
Implementations on Foreign Types
impl<V, R> TranslationInterpolate<<V as VectorSpace>::Scalar> for Decomposed<V, R> where
R: Clone,
V: VectorSpace + InnerSpace,
<V as VectorSpace>::Scalar: BaseFloat,
[src]
R: Clone,
V: VectorSpace + InnerSpace,
<V as VectorSpace>::Scalar: BaseFloat,
fn translation_interpolate(
&self,
other: &Decomposed<V, R>,
amount: <V as VectorSpace>::Scalar
) -> Decomposed<V, R>
[src]
&self,
other: &Decomposed<V, R>,
amount: <V as VectorSpace>::Scalar
) -> Decomposed<V, R>