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

Function diff_point

dd.py:38–42  ·  view source on GitHub ↗
(l: gm.Line, a: gm.Point)

Source from the content-addressed store, hash-verified

36
37
38def diff_point(l: gm.Line, a: gm.Point) -> gm.Point:
39 for x in l.neighbors(gm.Point):
40 if x != a:
41 return x
42 return None
43
44
45# pylint: disable=protected-access

Callers 2

Calls 1

neighborsMethod · 0.80

Tested by

no test coverage detected