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

Method two_points_on_direction

graph.py:3025–3028  ·  view source on GitHub ↗
(self, d: Direction)

Source from the content-addressed store, hash-verified

3023 yield p, a, b, c
3024
3025 def two_points_on_direction(self, d: Direction) -> tuple[Point, Point]:
3026 l = d.neighbors(Line)[0]
3027 p1, p2 = l.neighbors(Point)[:2]
3028 return p1, p2
3029
3030 def two_points_of_length(self, l: Length) -> tuple[Point, Point]:
3031 s = l.neighbors(Segment)[0]

Callers 5

match_eqangle_perp_perpFunction · 0.80
match_eqangle_paraFunction · 0.80

Calls 1

neighborsMethod · 0.80

Tested by

no test coverage detected