mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-30 02:37:24 +02:00
Fix way direction.
This commit is contained in:
parent
9a1130c3a6
commit
11c72d174e
1 changed files with 8 additions and 4 deletions
|
@ -24,10 +24,14 @@ class Figure(Tagged):
|
|||
) -> None:
|
||||
super().__init__(tags)
|
||||
|
||||
self.inners: list[list[OSMNode]] = list(map(make_clockwise, inners))
|
||||
self.outers: list[list[OSMNode]] = list(
|
||||
map(make_counter_clockwise, outers)
|
||||
)
|
||||
if inners and outers:
|
||||
self.inners: list[list[OSMNode]] = list(map(make_clockwise, inners))
|
||||
self.outers: list[list[OSMNode]] = list(
|
||||
map(make_counter_clockwise, outers)
|
||||
)
|
||||
else:
|
||||
self.inners = inners
|
||||
self.outers = outers
|
||||
|
||||
def get_path(
|
||||
self, flinger: Flinger, offset: np.ndarray = np.array((0.0, 0.0))
|
||||
|
|
Loading…
Add table
Reference in a new issue