5 ms·
you can’t represent the real plane on a computer. you can only have a limited amount of precision that effectively results in very dense grid, but a grid noneth
by AstixAndBelix 4y ago
you can’t represent the real plane on a computer. you can only have a limited amount of precision that effectively results in very dense grid, but a grid nonetheless
- bspammer 4y agoI don't think it can even be called a grid, as the gaps between points aren't the same length.
- AstixAndBelix 4y agodepends on your choice of floating point standard, you're right for the current IEEE one
- ErikCorry 4y agoIf the gaps are all the same size, isn't it fixed point rather than floating point?
- AstixAndBelix 4y agoI mean, if your board has a fixed zoom level you have to fix a certain precision
- rjmunro 4y agoThis is a classic example of something that should be fixed point, not floating point. Just represent positions internally as an integer between 0 and some large maximum. You could use the number of screen pixels, or a larger value if you want to allow e.g. precise moves by zooming in.
- jakear 4y agoare you able to represent it some place else?
- AstixAndBelix 4y agowhat does this mean?