Trait oxygengine_ha_renderer::math::Slerp
source · pub trait Slerp<Factor = f32>: Sized {
type Output;
// Required method
fn slerp_unclamped(from: Self, to: Self, factor: Factor) -> Self::Output;
// Provided method
fn slerp(from: Self, to: Self, factor: Factor) -> Self::Output
where Factor: Clamp<Factor> + Zero + One { ... }
}Expand description
A value that can be Spherically Linearly interpolated.
The Output type allows this trait to be meaningfully implemented for &T as well as T.
Required Associated Types§
Required Methods§
sourcefn slerp_unclamped(from: Self, to: Self, factor: Factor) -> Self::Output
fn slerp_unclamped(from: Self, to: Self, factor: Factor) -> Self::Output
Performs spherical linear interpolation without implictly constraining factor to
be between 0 and 1.