Trait pixel_game_lib::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 + Zero + One { ... }
}Expand description
Re-export vek types. 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.
Provided Methods§
Object Safety§
This trait is not object safe.