Closed opatiny closed 1 year ago
Let's Math.round
, and do the same in other draw functions. I expect the result to be closer to what we would have with a continuous plane.
This is actually an issue in many functions, I've just had it in copyTo
as well.
This is actually an issue in many functions, I've just had it in
copyTo
as well.
@targos, in the case of copyTo
we said that we would like to throw instead of rounding right?
Yes
I had to draw points for a test case and
drawPoints
was ignoring some of my points, which seemed like a very unexpected behaviour. I realised that some of the points were not whole values.We should handle floating point values, either:
@targos, wdyt?