Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fogleman/ln
/ Extend
Method
Extend
ln/box.go:62–64 ·
view source on GitHub ↗
(b Box)
Source
from the content-addressed store, hash-verified
60
}
61
62
func
(a Box) Extend(b Box) Box {
63
return
Box{a.Min.Min(b.Min), a.Max.Max(b.Max)}
64
}
65
66
func
(b *Box) Intersect(r Ray) (float64, float64) {
67
x1 := (b.Min.X - r.Origin.X) / r.Direction.X
Callers
5
BoundingBox
Method · 0.95
BoundingBox
Method · 0.80
BoundingBox
Method · 0.80
BoxForShapes
Function · 0.80
BoxForTriangles
Function · 0.80
Calls
2
Min
Method · 0.45
Max
Method · 0.45
Tested by
no test coverage detected