what is this "CONSTANT>>1" in c++\msdn -
i'm working on code given me cousin. in code there symbol don't recognize. awesome if can recognize , explain me!
object_size constant ">> 1" part need understanding.
"object_size>>1"
m_centerpt = point2f(middle.x - (object_size>>1) - midoffset, middle.y - (object_size>>1) - midoffset);
the >>
operator shift right; shifting positive number right 1 bit equivalent integer-dividing 2 (for same reason why removing last digit of decimal number equivalent of integer-dividing number ten).
Comments
Post a Comment