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

Function highlight_angle

numericals.py:1041–1055  ·  view source on GitHub ↗

Highlight an angle between ab and cd with (color, alpha).

(
    ax: matplotlib.axes.Axes,
    a: Point,
    b: Point,
    c: Point,
    d: Point,
    color: Any,
    alpha: float,
)

Source from the content-addressed store, hash-verified

1039
1040
1041def highlight_angle(
1042 ax: matplotlib.axes.Axes,
1043 a: Point,
1044 b: Point,
1045 c: Point,
1046 d: Point,
1047 color: Any,
1048 alpha: float,
1049) -> None:
1050 """Highlight an angle between ab and cd with (color, alpha)."""
1051 try:
1052 a, b, c, d = bring_together(a, b, c, d)
1053 except: # pylint: disable=bare-except
1054 return
1055 draw_angle(ax, a, b, d, color=color, alpha=alpha, frac=1.0)
1056
1057
1058def highlight(

Callers 1

_drawFunction · 0.85

Calls 2

bring_togetherFunction · 0.85
draw_angleFunction · 0.85

Tested by

no test coverage detected