> your rectangle's height is 85, and the top is at 44. > Half the height of the rect is 85 / 2 = 42, but that point must be > shifted 44 units in the horizontal: Uhm... by horizontal, I mean vertical :)