[−][src]Trait collision::prelude::Interpolate
Required methods
fn 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<S> Interpolate<S> for Quaternion<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn interpolate(&self, other: &Self, amount: S) -> Self
[src]
impl<S> Interpolate<S> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn interpolate(&self, other: &Self, amount: S) -> Self
[src]
impl<S> Interpolate<S> for Basis2<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn interpolate(&self, other: &Self, amount: S) -> Self
[src]
impl<V, R> Interpolate<<V as VectorSpace>::Scalar> for Decomposed<V, R> where
V: VectorSpace + InnerSpace,
R: Interpolate<V::Scalar>,
V::Scalar: BaseFloat,
[src]
V: VectorSpace + InnerSpace,
R: Interpolate<V::Scalar>,
V::Scalar: BaseFloat,