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

Function bring_together

numericals.py:713–722  ·  view source on GitHub ↗
(
    a: Point, b: Point, c: Point, d: Point
)

Source from the content-addressed store, hash-verified

711
712
713def bring_together(
714 a: Point, b: Point, c: Point, d: Point
715) -> tuple[Point, Point, Point, Point]:
716 ab = Line(a, b)
717 cd = Line(c, d)
718 x = line_line_intersection(ab, cd)
719 unit = Circle(center=x, radius=1.0)
720 y, _ = line_circle_intersection(ab, unit)
721 z, _ = line_circle_intersection(cd, unit)
722 return x, y, x, z
723
724
725def same_clock(

Callers 3

check_const_angleFunction · 0.85
check_eqangleFunction · 0.85
highlight_angleFunction · 0.85

Calls 4

line_line_intersectionFunction · 0.85
line_circle_intersectionFunction · 0.85
LineClass · 0.70
CircleClass · 0.70

Tested by

no test coverage detected