Link to home
Start Free TrialLog in
Avatar of ptmcomp
ptmcompFlag for Switzerland

asked on

Using float or int for coordinates for graphic operations

I'm developing a graphic editor which should not be limited too much in virtual space and precision. Before .net I used Int32 for the coordinates since the calculations are fast and I can address a huge virtual canvas with a good precision. Now .net comes up with float for most graphic operations. First tests showed that it's an advantage for text draw operations with small fonts. How will it affect my project if I use everywhere float for coordinates? What are the pros and cons?
ASKER CERTIFIED SOLUTION
Avatar of caner_elci
caner_elci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ptmcomp

ASKER

I decided to use floats everywhere. I use matrix transformations string draw and zooming and you convinced me to use floats.