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

Method IntersectShapes

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

Source from the content-addressed store, hash-verified

80}
81
82func (node *Node) IntersectShapes(r Ray) Hit {
83 hit := NoHit
84 for _, shape := range node.Shapes {
85 h := shape.Intersect(r)
86 if h.T < hit.T {
87 hit = h
88 }
89 }
90 return hit
91}
92
93func (node *Node) PartitionScore(axis Axis, point float64) int {
94 left, right := 0, 0

Callers 1

IntersectMethod · 0.95

Calls 1

IntersectMethod · 0.65

Tested by

no test coverage detected