Created
November 11, 2024 10:22
-
-
Save joaofig/aef7fb7afb94cc0f3b5e6bd43e22cf18 to your computer and use it in GitHub Desktop.
A GPS Segment structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GpsSegment(PointList): | |
def __init__(self, | |
point: RefPoint): | |
super().__init__() | |
self.append(point) | |
def __repr__(self): | |
return f"GpsSegment({self.points})" | |
def append_edge(self, edge: MapEdge) -> None: | |
for point in edge.points: | |
self.append(point) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment