Enum rubato::PolynomialDegree
source · pub enum PolynomialDegree {
Septic,
Quintic,
Cubic,
Linear,
Nearest,
}
Expand description
Degree of the polynomial used for interpolation. A higher degree gives a higher quality result, while taking longer to compute.
Variants§
Septic
Septic polynomial, fitted using 8 sample points.
Quintic
Quintic polynomial, fitted using 6 sample points.
Cubic
Cubic polynomial, fitted using 4 sample points.
Linear
Linear polynomial, fitted using 2 sample points.
Nearest
Nearest, uses the nearest sample point without any fitting.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PolynomialDegree
impl Send for PolynomialDegree
impl Sync for PolynomialDegree
impl Unpin for PolynomialDegree
impl UnwindSafe for PolynomialDegree
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more