Check if the angle is equal to the given constant.
(points: list[Point])
| 733 | |
| 734 | |
| 735 | def check_const_angle(points: list[Point]) -> bool: |
| 736 | """Check if the angle is equal to the given constant.""" |
| 737 | a, b, c, d, m, n = points |
| 738 | a, b, c, d = bring_together(a, b, c, d) |
| 739 | ba = b - a |
| 740 | dc = d - c |
| 741 | |
| 742 | a3 = np.arctan2(ba.y, ba.x) |
| 743 | a4 = np.arctan2(dc.y, dc.x) |
| 744 | y = a3 - a4 |
| 745 | |
| 746 | return close_enough(m / n % 1, y / np.pi % 1) |
| 747 | |
| 748 | |
| 749 | def check_eqangle(points: list[Point]) -> bool: |
nothing calls this directly
no test coverage detected