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

Function sketch_s_angle

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

Source from the content-addressed store, hash-verified

1819
1820
1821def sketch_s_angle(args: tuple[gm.Point, ...]) -> HalfLine:
1822 a, b, y = args
1823 ang = y / 180 * np.pi
1824 x = b + (a - b).rotatea(ang)
1825 return HalfLine(b, x)
1826
1827
1828def sketch_segment(args: tuple[gm.Point, ...]) -> tuple[Point, Point]:

Callers

nothing calls this directly

Calls 2

HalfLineClass · 0.85
rotateaMethod · 0.80

Tested by

no test coverage detected