(subpaths: &[Subpath<PointId>])
| 253 | } |
| 254 | |
| 255 | fn subpaths_bounding_box(subpaths: &[Subpath<PointId>]) -> Option<[DVec2; 2]> { |
| 256 | subpaths |
| 257 | .iter() |
| 258 | .filter_map(|subpath| subpath.bounding_box()) |
| 259 | .reduce(|[a_min, a_max], [b_min, b_max]| [a_min.min(b_min), a_max.max(b_max)]) |
| 260 | } |
| 261 | |
| 262 | impl OutlinePen for PathBuilder { |
| 263 | fn move_to(&mut self, x: f32, y: f32) { |
no test coverage detected