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

Function sketch_bisect

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

Source from the content-addressed store, hash-verified

1524
1525
1526def sketch_bisect(args: tuple[gm.Point, ...]) -> Line:
1527 a, b, c = args
1528 ab = a.distance(b)
1529 bc = b.distance(c)
1530 x = b + (c - b) * (ab / bc)
1531 m = (a + x) * 0.5
1532 return Line(b, m)
1533
1534
1535def sketch_exbisect(args: tuple[gm.Point, ...]) -> Line:

Callers 3

sketch_incenter2Function · 0.85
sketch_excenter2Function · 0.85
sketch_exbisectFunction · 0.85

Calls 2

LineClass · 0.70
distanceMethod · 0.45

Tested by

no test coverage detected