Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
11
type
Path []Vector
12
13
func
(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
21
func
(p Path) Transform(matrix Matrix) Path {
22
var
result Path
Callers
nothing calls this directly
Calls
1
Extend
Method · 0.95
Tested by
no test coverage detected