Trait vek::ops::Slerp [−][src]
A value that can be Spherically Linearly interpolated.
The Output
type allows this trait to be meaningfully implemented for &T
as well as T
.
Associated Types
Loading content...Required methods
fn slerp_unclamped(from: Self, to: Self, factor: Factor) -> Self::Output
[src]
Performs spherical linear interpolation without implictly constraining factor
to
be between 0 and 1.
Provided methods
fn slerp(from: Self, to: Self, factor: Factor) -> Self::Output where
Factor: Clamp + Zero + One,
[src]
Factor: Clamp + Zero + One,
Performs spherical linear interpolation, constraining factor
to
be between 0 and 1.
Implementors
impl<'a, T, Factor> Slerp<Factor> for &'a vek::quaternion::repr_c::Quaternion<T> where
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,
[src]
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,
type Output = Quaternion<T>
fn slerp_unclamped(from: Self, to: Self, factor: Factor) -> Quaternion<T>
[src]
impl<'a, T, Factor> Slerp<Factor> for &'a vek::quaternion::repr_simd::Quaternion<T> where
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,
[src]
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,
type Output = Quaternion<T>
fn slerp_unclamped(from: Self, to: Self, factor: Factor) -> Quaternion<T>
[src]
impl<T> Slerp<T> for vek::vec::repr_c::vec3::Vec3<T> where
T: Add<T, Output = T> + Real + Clamp + Lerp<T, Output = T>,
[src]
T: Add<T, Output = T> + Real + Clamp + Lerp<T, Output = T>,
type Output = Self
fn slerp_unclamped(from: Self, to: Self, factor: T) -> Self
[src]
impl<T> Slerp<T> for vek::vec::repr_simd::vec3::Vec3<T> where
T: Add<T, Output = T> + Real + Clamp + Lerp<T, Output = T>,
[src]
T: Add<T, Output = T> + Real + Clamp + Lerp<T, Output = T>,
type Output = Self
fn slerp_unclamped(from: Self, to: Self, factor: T) -> Self
[src]
impl<T, Factor> Slerp<Factor> for vek::quaternion::repr_c::Quaternion<T> where
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,
[src]
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,
type Output = Self
fn slerp_unclamped(from: Self, to: Self, factor: Factor) -> Self
[src]
impl<T, Factor> Slerp<Factor> for vek::quaternion::repr_simd::Quaternion<T> where
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,
[src]
T: Lerp<T, Output = T> + Add<T, Output = T> + Real,
Factor: Into<T>,