MCPcopy Index your code
hub / github.com/fogleman/ln / Intersect

Method Intersect

ln/tree.go:20–26  ·  view source on GitHub ↗
(r Ray)

Source from the content-addressed store, hash-verified

18}
19
20func (tree *Tree) Intersect(r Ray) Hit {
21 tmin, tmax := tree.Box.Intersect(r)
22 if tmax < tmin || tmax <= 0 {
23 return NoHit
24 }
25 return tree.Root.Intersect(r, tmin, tmax)
26}
27
28type Node struct {
29 Axis Axis

Callers

nothing calls this directly

Calls 1

IntersectMethod · 0.65

Tested by

no test coverage detected