curve/bezier/
align.rs

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