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

Method test_sketch_shift

numericals_test.py:261–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 self.assertAlmostEqual(ang_between(e, d, f), ang_between(b, a, x))
260
261 def test_sketch_shift(self):
262 a, b, c = random_points(3)
263 x = nm.sketch_shift([a, b, c])
264 self.assertTrue((b - a).close(x - c))
265
266 def test_sketch_square(self):
267 a, b = random_points(2)

Callers

nothing calls this directly

Calls 2

random_pointsFunction · 0.85
closeMethod · 0.80

Tested by

no test coverage detected