MCPcopy
hub / github.com/fogleman/ln / Add

Method Add

ln/scene.go:17–19  ·  view source on GitHub ↗
(shape Shape)

Source from the content-addressed store, hash-verified

15}
16
17func (s *Scene) Add(shape Shape) {
18 s.Shapes = append(s.Shapes, shape)
19}
20
21func (s *Scene) Intersect(r Ray) Hit {
22 return s.Tree.Intersect(r)

Callers 15

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
RenderFunction · 0.95
runFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected