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

Function sketch_rectangle

numericals.py:1785–1792  ·  view source on GitHub ↗
(args: tuple[gm.Point, ...])

Source from the content-addressed store, hash-verified

1783
1784
1785def sketch_rectangle(args: tuple[gm.Point, ...]) -> tuple[Point, ...]:
1786 a = Point(0.0, 0.0)
1787 b = Point(0.0, 1.0)
1788 l = unif(0.5, 2.0)
1789 c = Point(l, 1.0)
1790 d = Point(l, 0.0)
1791 a, b, c, d = random_rfss(a, b, c, d)
1792 return a, b, c, d
1793
1794
1795def sketch_reflect(args: tuple[gm.Point, ...]) -> Point:

Callers

nothing calls this directly

Calls 2

random_rfssFunction · 0.85
PointClass · 0.70

Tested by

no test coverage detected