1 2 3 4 5 6 7 8 9 10 11 12
use num_traits::Float; use crate::align::Align; use crate::bezier::{Cubic, Quadratic}; impl<T: Float> Align<T, Cubic<T>> for Quadratic<T> { fn align(mut self, other: &Cubic<T>) -> Self { self[0] = other[0]; self[2] = other[3]; self } }