MCPcopy
hub / github.com/fogleman/ln / BoundingBox

Method BoundingBox

ln/path.go:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11type Path []Vector
12
13func (p Path) BoundingBox() Box {
14 box := Box{p[0], p[0]}
15 for _, v := range p {
16 box = box.Extend(Box{v, v})
17 }
18 return box
19}
20
21func (p Path) Transform(matrix Matrix) Path {
22 var result Path

Callers

nothing calls this directly

Calls 1

ExtendMethod · 0.95

Tested by

no test coverage detected