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

Function random_points

numericals.py:1272–1273  ·  view source on GitHub ↗
(n: int = 3)

Source from the content-addressed store, hash-verified

1270
1271
1272def random_points(n: int = 3) -> list[Point]:
1273 return [Point(unif(-1, 1), unif(-1, 1)) for _ in range(n)]
1274
1275
1276def random_rfss(*points: list[Point]) -> list[Point]:

Callers 15

test_sketch_3peqMethod · 0.85
test_sketch_alineMethod · 0.85
test_sketch_amirrorMethod · 0.85
test_sketch_bisectMethod · 0.85
test_sketch_blineMethod · 0.85
test_sketch_circleMethod · 0.85
test_sketch_eqangle3Method · 0.85
test_sketch_eqangle2Method · 0.85
test_sketch_reflectMethod · 0.85
test_sketch_rotaten90Method · 0.85
test_sketch_rotatep90Method · 0.85
test_sketch_s_angleMethod · 0.85

Calls 1

PointClass · 0.70

Tested by 15

test_sketch_3peqMethod · 0.68
test_sketch_alineMethod · 0.68
test_sketch_amirrorMethod · 0.68
test_sketch_bisectMethod · 0.68
test_sketch_blineMethod · 0.68
test_sketch_circleMethod · 0.68
test_sketch_eqangle3Method · 0.68
test_sketch_eqangle2Method · 0.68
test_sketch_reflectMethod · 0.68
test_sketch_rotaten90Method · 0.68
test_sketch_rotatep90Method · 0.68
test_sketch_s_angleMethod · 0.68