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

Method test_sketch_rectangle

numericals_test.py:211–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 self.assertTrue(Line(a, b).is_perp(Line(a, c)))
210
211 def test_sketch_rectangle(self):
212 a, b, c, d = nm.sketch_rectangle([])
213 self.assertTrue(Line(a, b).is_perp(Line(b, c)))
214 self.assertTrue(Line(b, c).is_perp(Line(c, d)))
215 self.assertTrue(Line(c, d).is_perp(Line(d, a)))
216
217 def test_sketch_reflect(self):
218 a, b, c = random_points(3)

Callers

nothing calls this directly

Calls 2

is_perpMethod · 0.80
LineClass · 0.70

Tested by

no test coverage detected