MCPcopy
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
62func (a Box) Extend(b Box) Box {
63 return Box{a.Min.Min(b.Min), a.Max.Max(b.Max)}
64}
65
66func (b *Box) Intersect(r Ray) (float64, float64) {
67 x1 := (b.Min.X - r.Origin.X) / r.Direction.X

Callers 5

BoundingBoxMethod · 0.95
BoundingBoxMethod · 0.80
BoundingBoxMethod · 0.80
BoxForShapesFunction · 0.80
BoxForTrianglesFunction · 0.80

Calls 2

MinMethod · 0.45
MaxMethod · 0.45

Tested by

no test coverage detected