Why texture center is not equal to texture coordinates?

or maybe also

image

Or, code it in a different way.