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

Function ang_of

numericals.py:1249–1252  ·  view source on GitHub ↗
(tail: Point, head: Point)

Source from the content-addressed store, hash-verified

1247
1248
1249def ang_of(tail: Point, head: Point) -> float:
1250 vector = head - tail
1251 arctan = np.arctan2(vector.y, vector.x) % (2 * np.pi)
1252 return arctan
1253
1254
1255def ang_between(tail: Point, head1: Point, head2: Point) -> float:

Callers 5

naming_positionFunction · 0.85
ang_betweenFunction · 0.85
sketch_eq_quadrangleFunction · 0.85
sketch_eqangle3Function · 0.85
sketch_trisectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected