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

Method test_sketch_aline

numericals_test.py:80–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 self.assertAlmostEqual(z.distance(x), z.distance(y))
79
80 def test_sketch_aline(self):
81 a, b, c, d, e = random_points(5)
82 ex = nm.sketch_aline([a, b, c, d, e])
83 self.assertIsInstance(ex, HalfLine)
84 self.assertEqual(ex.tail, e)
85 x = ex.head
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)

Callers

nothing calls this directly

Calls 2

random_pointsFunction · 0.85
ang_betweenFunction · 0.85

Tested by

no test coverage detected