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