Node of type Angle.
| 482 | |
| 483 | |
| 484 | class Angle(Node): |
| 485 | """Node of type Angle.""" |
| 486 | |
| 487 | def new_val(self) -> Measure: |
| 488 | return Measure() |
| 489 | |
| 490 | def set_directions(self, d1: Direction, d2: Direction) -> None: |
| 491 | self._d = d1, d2 |
| 492 | |
| 493 | @property |
| 494 | def directions(self) -> tuple[Direction, Direction]: |
| 495 | d1, d2 = self._d |
| 496 | if d1 is None or d2 is None: |
| 497 | return d1, d2 |
| 498 | return d1.rep(), d2.rep() |
| 499 | |
| 500 | |
| 501 | class Measure(Node): |
nothing calls this directly
no outgoing calls
no test coverage detected