shape_core/elements/lines/
traits.rs

1use crate::{Point, Vector};
2
3impl<T, P> From<P> for Vector<T>
4where
5    Point<T>: From<P>,
6{
7    fn from(value: P) -> Self {
8        let value: Point<T> = value.into();
9        Self { dx: value.x, dy: value.y }
10    }
11}