You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For context: I have map like data from a sweeping robot whose coordinate system goes from -1k to +1k in both axes. I am attempting to translate that into coordinates which I can fit and center on the mobile screen.
I am translating both axes here, but only the second transformation seems to stick, the first axis is always ignored. To see the problem, switch translateY and translateX lines in the code and watch what happens to the rect.
I tried to reduce this as much as possible.
For context: I have map like data from a sweeping robot whose coordinate system goes from -1k to +1k in both axes. I am attempting to translate that into coordinates which I can fit and center on the mobile screen.
I am translating both axes here, but only the second transformation seems to stick, the first axis is always ignored. To see the problem, switch translateY and translateX lines in the code and watch what happens to the rect.
Code:
with translateY first:
with translateX first:
I would expect that both dimensions are transformed, e.g. the border padding is visible at the top AND at the left side.
The text was updated successfully, but these errors were encountered: