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

Function sketch_e5128

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

Source from the content-addressed store, hash-verified

1597
1598
1599def sketch_e5128(args: tuple[gm.Point, ...]) -> tuple[Point, Point]:
1600 a, b, c, d = args
1601 ad = Line(a, d)
1602
1603 g = (a + b) * 0.5
1604 de = Line(d, g)
1605
1606 e, f = line_circle_intersection(de, Circle(c, p1=b))
1607
1608 if e.distance(d) < f.distance(d):
1609 e = f
1610 return e, g
1611
1612
1613def sketch_eq_quadrangle(args: tuple[gm.Point, ...]) -> tuple[Point, ...]:

Callers

nothing calls this directly

Calls 4

line_circle_intersectionFunction · 0.85
LineClass · 0.70
CircleClass · 0.70
distanceMethod · 0.45

Tested by

no test coverage detected