Detecting edges for collision detection.
Using IVec2 in place of Dimensions nonsense...