Re:The Center of the Pixel is (0.5, 0.5)
by Kednicma on Thursday June 11, 2020 @05:11PM
(#23493331)
I know that many languages have some sort of support for units. It would be nice to have libraries which explicitly say that (0,1) and (-1,1) are different, and support transforming between them. I think that this transformation comes up all the time when working with pixels that are properly aligned and centered.
[ Parent
| on HN ]
Re:The Center of the Pixel is (0.5, 0.5)
by aspaceman on Thursday June 11, 2020 @05:57PM
(#23493707)
I know of yt-project, which has a lot of cool support for units in the context of sci-vis. Support for transforms between coordinate systems is nice though. Would love to have that. The only hard part is that systems which try and do this sort of thing lose some of the elegance of saying "V = (0, 1)" when you also have to specify the coordinate system you're working under for every vector.
There have been some papers that do this though. I can't find the reference but I know it exists.