| 21 | |
| 22 | #[derive(Default, Clone)] |
| 23 | pub struct LinePoint<D> { |
| 24 | color: Color, |
| 25 | highlight_color: Color, |
| 26 | // formatted_value: String, |
| 27 | index: usize, |
| 28 | old_value: Option<D>, |
| 29 | value: Option<D>, |
| 30 | |
| 31 | old_x: f64, |
| 32 | old_y: f64, |
| 33 | old_cp1: Option<Point<f64>>, |
| 34 | old_cp2: Option<Point<f64>>, |
| 35 | old_point_radius: f64, |
| 36 | |
| 37 | /// The first control point. |
| 38 | cp1: Option<Point<f64>>, |
| 39 | |
| 40 | /// The second control point. |
| 41 | cp2: Option<Point<f64>>, |
| 42 | x: f64, |
| 43 | y: f64, |
| 44 | |
| 45 | point_radius: f64, |
| 46 | } |
| 47 | |
| 48 | impl<D> LinePoint<D> { |
| 49 | fn as_point(&self) -> Point<f64> { |
nothing calls this directly
no outgoing calls
no test coverage detected