Skip to content

Commit

Permalink
fix affine_map
Browse files Browse the repository at this point in the history
  • Loading branch information
Evidlo committed Sep 22, 2020
1 parent 447ad2d commit 626cd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remarkable_sim/evsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def affine_map(x, a0, a1, b0, b1):
int: mapped coordinate
"""

return int(((x - a0) / a1) * b1 + b0)
return int(((x - a0) / a1) * (b1 - b0) + b0)

def makefifo(path):
"""Make a fifo, delete existing fifo
Expand Down

0 comments on commit 626cd78

Please sign in to comment.