MCPcopy Create free account
hub / github.com/danieljfarrell/pvtrace / test_intersection

Method test_intersection

tests/test_box.py:44–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 assert b.contains((0.0, 0.0, 1.0)) == False
43
44 def test_intersection(self):
45 b = Box(size=(1,1,1))
46 ro = (-2.0, 0.0, 0.0)
47 rd = (1.0, 0.0, 0.0)
48 assert b.intersections(ro, rd) == ((-0.5, 0.0, 0.0), (0.5, 0.0, 0.0))
49
50 def test_normal(self):
51 b = Box(size=(1,1,1))

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
intersectionsMethod · 0.45

Tested by

no test coverage detected