Skip to content

Commit

Permalink
fix computation
Browse files Browse the repository at this point in the history
  • Loading branch information
vpoulailleau committed Feb 5, 2024
1 parent 18d83cc commit 9bf865d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions space_collector/viewer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

def map_value_to_window(value: float) -> float:
return max(
map_coord_to_window_coord(value, 0)[0],
map_coord_to_window_coord(0, value)[1],
int(value / MAP_DIMENSION * MAP_WIDTH),
int(value / MAP_DIMENSION * MAP_HEIGHT),
)


Expand Down

0 comments on commit 9bf865d

Please sign in to comment.