mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add __str__ for Heading.
This commit is contained in:
parent
703bb98b62
commit
431165ab83
@ -397,6 +397,9 @@ class Heading:
|
||||
def __sub__(self, other: Heading) -> Heading:
|
||||
return Heading.from_degrees(self.degrees - other.degrees)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"{self.heading_in_degrees}°"
|
||||
|
||||
|
||||
@dataclass(frozen=True, order=True)
|
||||
class Pressure:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user