MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / subpaths_bounding_box

Function subpaths_bounding_box

node-graph/nodes/text/src/path_builder.rs:255–260  ·  view source on GitHub ↗
(subpaths: &[Subpath<PointId>])

Source from the content-addressed store, hash-verified

253}
254
255fn 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
262impl OutlinePen for PathBuilder {
263 fn move_to(&mut self, x: f32, y: f32) {

Callers 1

draw_glyphMethod · 0.85

Calls 4

iterMethod · 0.45
bounding_boxMethod · 0.45
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected