pub trait Blend: Copy {
// Required methods
fn zero() -> Self;
fn scale(self, k: f64) -> Self;
fn add(self, other: Self) -> Self;
// Provided methods
fn lerp(self, other: Self, t: f64) -> Self { ... }
fn sub(self, other: Self) -> Self { ... }
}Expand description
The affine structure a control point needs: scaling and addition.
Implemented for vectors, points and scalars. de Boor and the refinement algorithms take only affine combinations (coefficients summing to one), so applying them to positions is meaningful even though positions have no meaningful sum on their own.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".