- Home /
Half a pixel?
Hello!
What's the difference between Rect(10,10,100,100) and Rect(10.5,10.3,100.4,100.7)? If we are measuring things in pixels, what does it mean "half a pixel" here?
Thanks!
Comment
As far as I know, those values are always int and are rounded up or down accordingly. It means pixels are always a full value and using floats like that will only confuse you. You see values like Rect(10.5,10.3,100.4,100.7) but in reality they will be something like Rect(11,10,100,101), some being rounded up and others down.
Your answer
Follow this Question
Related Questions
Check the length of a line renderer? 2 Answers
zero is not zero 2 Answers
modify particle system startLifetime over time 1 Answer
How to change Main Camera size and position via code? 2 Answers