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
I'm doing a lot of work that revolves around precisely centering groups of shapes on both axes. Integer precision is insufficient for this. You can really tell looking at the slides that the centering is off by one pixel here and there.
Let's convert IPosition.X and other position and size properties into decimal type. In the future, if there are any complaints about performance, we will add some IPosition.FloatX.
jcoliz
added a commit
to jcoliz/ShapeCrawler
that referenced
this issue
May 16, 2024
I'm doing a lot of work that revolves around precisely centering groups of shapes on both axes. Integer precision is insufficient for this. You can really tell looking at the slides that the centering is off by one pixel here and there.
This has been fixed perfectly by using sub-pixel positioning and sizing. Prototype here: https://github.com/jcoliz/ShapeCrawler/tree/topic/decimal-positioning . I did this using decimals, but afterward I'm not convinced decimal is any better than double in this application.
Would like to contribute this back. Question for @ashahabov , how would you prefer it done?
The text was updated successfully, but these errors were encountered: