MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / test_sketch_amirror

Method test_sketch_amirror

numericals_test.py:88–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.assertAlmostEqual(ang_between(b, a, c), ang_between(e, d, x))
87
88 def test_sketch_amirror(self):
89 a, b, c = random_points(3)
90 bx = nm.sketch_amirror([a, b, c])
91 self.assertIsInstance(bx, HalfLine)
92 assert bx.tail == b
93 x = bx.head
94
95 ang1 = ang_between(b, a, c)
96 ang2 = ang_between(b, c, x)
97 self.assertAlmostEqual(ang1, ang2)
98
99 def test_sketch_bisect(self):
100 a, b, c = random_points(3)

Callers

nothing calls this directly

Calls 2

random_pointsFunction · 0.85
ang_betweenFunction · 0.85

Tested by

no test coverage detected